X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1693dc615e67c1bae3b6b52c0631fc58d8475d8f..b2610e066d569b323fe55ffee615e61ca4e461d1:/apps/workbench/test/test_helper.rb diff --git a/apps/workbench/test/test_helper.rb b/apps/workbench/test/test_helper.rb index d1d63e2596..ab2ac395b4 100644 --- a/apps/workbench/test/test_helper.rb +++ b/apps/workbench/test/test_helper.rb @@ -204,6 +204,21 @@ class ActionController::TestCase end end +# If it quacks like a duck, it must be a HTTP request object. +class RequestDuck + def self.host + "localhost" + end + + def self.port + 8080 + end + + def self.protocol + "http" + end +end + if ENV["RAILS_ENV"].eql? 'test' ApiServerForTests.new.run ApiServerForTests.new.run ["--websockets"]