diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-11-17 14:56:06 -0800 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-11-17 14:57:01 -0800 |
commit | c01b20b658c9fe4b7d54f4a227a09cb090b5763d (patch) | |
tree | db37ae6eefdff0029671d258ca5a4a6c71a1ae55 /activerecord/test/cases/adapters/postgresql | |
parent | bf149679f426c1f6d3e5d280ed19b42f62c9b33f (diff) | |
download | rails-c01b20b658c9fe4b7d54f4a227a09cb090b5763d.tar.gz rails-c01b20b658c9fe4b7d54f4a227a09cb090b5763d.tar.bz2 rails-c01b20b658c9fe4b7d54f4a227a09cb090b5763d.zip |
rm `reorder_bind_params`
Arel handles this for us automatically. Updated tests, as BindParam is
no longer a subclass of SqlLiteral. We should remove the second argument
to substitute_at entirely, as it's no longer used
Diffstat (limited to 'activerecord/test/cases/adapters/postgresql')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb b/activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb index a71c0dfb26..7d6c15c826 100644 --- a/activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb +++ b/activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb @@ -305,10 +305,7 @@ module ActiveRecord def test_substitute_at bind = @connection.substitute_at(nil, 0) - assert_equal Arel.sql('$1'), bind - - bind = @connection.substitute_at(nil, 1) - assert_equal Arel.sql('$2'), bind + assert_equal Arel.sql('$1'), bind.to_sql end def test_partial_index |