Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hackedunit committed Feb 9, 2010
1 parent 2ba46fa commit 994c741
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/maxmind/request.rb
Expand Up @@ -55,7 +55,7 @@ def query(string = false)
if string == false
return get(query.reject {|k, v| v.nil? }.to_query)
else
return query.reject {|k, v| v.nil? }.to_params
return query.reject {|k, v| v.nil? }.to_query
end
end

Expand Down
4 changes: 2 additions & 2 deletions test/maxmind_test.rb
Expand Up @@ -93,7 +93,7 @@ class MaxmindTest < Test::Unit::TestCase
context "Response" do
setup do
request = Maxmind::Request.new('LICENSE_KEY', REQUIRED_FIELDS.merge(RECOMMENDED_FIELDS).merge(OPTIONAL_FIELDS))
FakeWeb.register_uri(:get, "http://minfraud3.maxmind.com/app/ccv2r?" + request.query(true), :body => File.read(File.join(File.dirname(__FILE__), "fixtures/response.txt")))
FakeWeb.register_uri(:get, "https://minfraud1.maxmind.com/app/ccv2r?" + request.query(true), :body => File.read(File.join(File.dirname(__FILE__), "fixtures/response.txt")))

@response = Maxmind::Response.new(request.query)
end
Expand Down Expand Up @@ -123,7 +123,7 @@ class MaxmindTest < Test::Unit::TestCase
end

should "have an explanation" do
@response.explanation.should_not be_nil
@response.explanation.should_not == nil
end
end
end

0 comments on commit 994c741

Please sign in to comment.