Add Docker and Travis config files to enable CI tests
Also fixes some Rails 6.0 deprecation warnings
This commit is contained in:
@@ -58,6 +58,7 @@ class ActiveSupport::TestCase
|
||||
include TestHelpers
|
||||
|
||||
setup do
|
||||
Socket.stubs(:gethostname).returns("www.example.com")
|
||||
mock_popular_search_service!
|
||||
mock_missed_search_service!
|
||||
WebMock.allow_net_connect!
|
||||
@@ -104,6 +105,7 @@ class ActionDispatch::IntegrationTest
|
||||
|
||||
def setup
|
||||
super
|
||||
Socket.stubs(:gethostname).returns("www.example.com")
|
||||
Danbooru.config.stubs(:enable_sock_puppet_validation?).returns(false)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user