Permalink
Browse files

Create spec for Issue #94 #94

  • Loading branch information...
rehevkor5
rehevkor5 committed Feb 4, 2013
1 parent bc07ecd commit 600ebf208250f8e5d22568d491934d703bb69b05
Showing with 8 additions and 0 deletions.
  1. +8 −0 spec/addressable/uri_spec.rb
@@ -5079,6 +5079,14 @@ def to_str
@uri.query_values = @uri.query_values(Array)
@uri.to_s.should == original_uri
end
+
+ describe 'when a hash with mixed types is assigned to query_values' do
+ it 'should not raise an error' do
+ pending 'Issue #94' do
+ expect { subject.query_values = { "page" => "1", :page => 2 } }.to_not raise_error ArgumentError
+ end
+ end
+ end
end
describe Addressable::URI, "when assigning path values" do

0 comments on commit 600ebf2

Please sign in to comment.