Merge branch 'master' into 3177-collection-choose-files
[arvados.git] / apps / workbench / test / test_helper.rb
index d1d63e259646e2abe618369cb31928e5d5020124..ab2ac395b4c487b85643d6df5989934acd7e630f 100644 (file)
@@ -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"]