diff options
author | Jon Leighton <j@jonathanleighton.com> | 2012-04-27 11:42:22 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2012-04-27 11:42:50 +0100 |
commit | df6f971e3aedf8bb1ec318de95d7ce849e2c9c9e (patch) | |
tree | c18946036ddff7f38c92a9c4f8bff99bc6da49c9 /activerecord/test/cases/adapters/postgresql | |
parent | a57b7842d0fcdcbcc567532d3a5c1f2628057a0d (diff) | |
download | rails-df6f971e3aedf8bb1ec318de95d7ce849e2c9c9e.tar.gz rails-df6f971e3aedf8bb1ec318de95d7ce849e2c9c9e.tar.bz2 rails-df6f971e3aedf8bb1ec318de95d7ce849e2c9c9e.zip |
%s/find(:\(first\|last\|all\), \([^()]*\))/scoped(\2).\1/gcI amongst other things
Diffstat (limited to 'activerecord/test/cases/adapters/postgresql')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/hstore_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/hstore_test.rb b/activerecord/test/cases/adapters/postgresql/hstore_test.rb index 05d38ec1f1..23bafde17b 100644 --- a/activerecord/test/cases/adapters/postgresql/hstore_test.rb +++ b/activerecord/test/cases/adapters/postgresql/hstore_test.rb @@ -90,7 +90,7 @@ class PostgresqlHstoreTest < ActiveRecord::TestCase def test_rewrite @connection.execute "insert into hstores (tags) VALUES ('1=>2')" - x = Hstore.find :first + x = Hstore.first x.tags = { '"a\'' => 'b' } assert x.save! end @@ -98,13 +98,13 @@ class PostgresqlHstoreTest < ActiveRecord::TestCase def test_select @connection.execute "insert into hstores (tags) VALUES ('1=>2')" - x = Hstore.find :first + x = Hstore.first assert_equal({'1' => '2'}, x.tags) end def test_select_multikey @connection.execute "insert into hstores (tags) VALUES ('1=>2,2=>3')" - x = Hstore.find :first + x = Hstore.first assert_equal({'1' => '2', '2' => '3'}, x.tags) end |