Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added support for a :domain option in test_helper requests

  • Loading branch information...
commit 5c391a87cde1959b4cca3980cfa641aa9232555e 1 parent 8d3c22d
kybishop authored March 26, 2013

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  lib/goliath/test_helper.rb
4  lib/goliath/test_helper.rb
@@ -178,11 +178,11 @@ def options_request(request_data = {}, errback = nil, &blk)
178 178
     end
179 179
 
180 180
     def create_test_request(request_data)
  181
+      domain = request_data.delete(:domain) || "localhost:#{@test_server_port}"
181 182
       path = request_data.delete(:path) || ''
182  
-      subdomain = request_data.delete(:subdomain) || ''
183 183
       opts = request_data.delete(:connection_options) || {}
184 184
 
185  
-      EM::HttpRequest.new("http://#{subdomain}localhost:#{@test_server_port}#{path}", opts)
  185
+      EM::HttpRequest.new("http://#{domain}#{path}", opts)
186 186
     end
187 187
 
188 188
     private

0 notes on commit 5c391a8

Please sign in to comment.
Something went wrong with that request. Please try again.