Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tweak ActiveSupport:JSON test when #decode('') returns false
  • Loading branch information
technoweenie committed Feb 9, 2010
1 parent 06c4f39 commit bf5f00c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/response_middleware_test.rb
Expand Up @@ -26,7 +26,7 @@ class ResponseMiddlewareTest < Faraday::TestCase
end
response = @connection.get('blank')
assert response.success?
assert_equal nil, response.body
assert !response.body
end

it "uses #{parser} to skip nil content" do
Expand All @@ -38,7 +38,7 @@ class ResponseMiddlewareTest < Faraday::TestCase
end
response = @connection.get('nil')
assert response.success?
assert_equal nil, response.body
assert !response.body
end
end
end
Expand Down

0 comments on commit bf5f00c

Please sign in to comment.