Skip to content

Commit

Permalink
Failing spec to expose problem mentioned in #384
Browse files Browse the repository at this point in the history
  • Loading branch information
mikegee committed Jun 13, 2015
1 parent 8b31754 commit 40e7ec5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/unit/util/query_mapper_spec.rb
Expand Up @@ -101,4 +101,12 @@
expect(subject.values_to_query values).to eq query
expect(subject.query_to_values query).to eq values
end

it 'converts a hash with an array of hashes',focus:true do
query = 'tags%5B%5D%5Ba%5D=1&tags%5B%5D%5Bb%5D=2'
values = {"tags" => [{"a" => "1", "b" => "2"}]}
expect(subject.values_to_query values).to eq query
expect(subject.query_to_values query).to eq values
end

end

0 comments on commit 40e7ec5

Please sign in to comment.