test/queries/contains_test.rb in postgres_ext-2.3.0 vs test/queries/contains_test.rb in postgres_ext-2.4.0.beta.1

- old
+ new

@@ -5,10 +5,10 @@ let(:contained_within_equals_regex) { %r{\"people\"\.\"ip\" <<= '127.0.0.1/24'} } let(:contains_ip_regex) { %r{\"people\"\.\"ip\" >> '127.0.0.1'} } let(:contains_array_regex) { %r{\"people\"\.\"tag_ids\" @> '\{1,2\}'} } let(:contains_hstore_regex) { %r{\"people\"\.\"data\" @> '\"nickname\"=>"Dan"'} } let(:contains_equals_regex) { %r{\"people\"\.\"ip\" >>= '127.0.0.1'} } - let(:equality_regex) { %r{\"people\"\.\"tags\" = '\{\"working\"\}'} } + let(:equality_regex) { %r{\"people\"\.\"tags\" = '\{"?working"?\}'} } describe '.where.contained_within(:column, value)' do it 'generates the appropriate where clause' do query = Person.where.contained_within(:ip => '127.0.0.1/24') query.to_sql.must_match contained_within_regex