spec/zunnit_spec.rb in zunnit-0.3.3 vs spec/zunnit_spec.rb in zunnit-0.3.4

- old
+ new

@@ -111,10 +111,10 @@ def intercept_resquest_to(method, options) action = options.delete(:action) params = options.delete(:params) response = options.delete(:response) - uri = "#{Zunnit::URL}#{Zunnit.client}#{Zunnit.actions[action]}" + uri = URI.parse(Zunnit.url).merge(Zunnit.actions[action]) uri = uri + params.map {|k,v| "#{k}=#{v}" }.join("&") unless method.to_s =~ /post|put/ FakeWeb.register_uri(method, uri, response) end end