Permalink
Browse files

test_default_query.rb: test for string_keys for query

  • Loading branch information...
godfat committed Aug 2, 2012
1 parent e795d8c commit 841e556de3bb40516951af60fa074730cfb95b21
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/test_default_query.rb
@@ -22,6 +22,13 @@
@app.call(env){ |r|
r.should.eq({RC::REQUEST_QUERY => {'q' => 'uery'}.merge(format)}) }
end
+
+ should 'string_keys in query' do
+ env = {'query' => {:symbol => 'value'}}
+ @app.call(env){ |r|
+ r.should.eq({RC::REQUEST_QUERY => {'symbol' => 'value'}}.merge(env))
+ }
+ end
end
describe 'when not given query' do

0 comments on commit 841e556

Please sign in to comment.