Skip to content
Browse files

Merge remote branch 'mattsa/query_test_tweaks'

  • Loading branch information...
2 parents 185537f + 0b83ba1 commit 013e1f284d8b4be5890254dee557aed2b981d79a @geemus geemus committed Mar 24, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/query_string_tests.rb
View
8 tests/query_string_tests.rb
@@ -31,11 +31,11 @@
response = connection.request(:method => :get, :path => '/query', :query => {:foo => 'bar', :me => nil})
query_string = response.body[7..-1] # query string sent
- tests("query string sent includes 'foo=bar'").returns(true) do
+ test("query string sent includes 'foo=bar'") do
query_string.split('&').include?('foo=bar')
end
- tests("query string sent includes 'me'").returns(true) do
+ test("query string sent includes 'me'") do
query_string.split('&').include?('me')
end
@@ -46,11 +46,11 @@
response = connection.request(:method => :get, :path => '/query', :query => {:foo => 'bar', :me => 'too'})
query_string = response.body[7..-1] # query string sent
- tests("query string sent includes 'foo=bar'").returns(true) do
+ test("query string sent includes 'foo=bar'") do
query_string.split('&').include?('foo=bar')
end
- tests("query string sent includes 'me=too'").returns(true) do
+ test("query string sent includes 'me=too'") do
query_string.split('&').include?('me=too')
end

0 comments on commit 013e1f2

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