diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-11-17 15:04:40 -0800 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-11-17 15:04:40 -0800 |
commit | eb26f24bde62cbbcd8ef0e7ee9c64060b098baff (patch) | |
tree | bd9a245d1bc6a6a480363c9254cdcd3508ee6ca4 /activerecord/test/cases/adapters | |
parent | c01b20b658c9fe4b7d54f4a227a09cb090b5763d (diff) | |
download | rails-eb26f24bde62cbbcd8ef0e7ee9c64060b098baff.tar.gz rails-eb26f24bde62cbbcd8ef0e7ee9c64060b098baff.tar.bz2 rails-eb26f24bde62cbbcd8ef0e7ee9c64060b098baff.zip |
Remove the unused second argument to `substitute_at`
Oh hey, we got to remove some code because of that!
Diffstat (limited to 'activerecord/test/cases/adapters')
3 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/adapters/mysql/connection_test.rb b/activerecord/test/cases/adapters/mysql/connection_test.rb index 9353607f5d..52eebe1886 100644 --- a/activerecord/test/cases/adapters/mysql/connection_test.rb +++ b/activerecord/test/cases/adapters/mysql/connection_test.rb @@ -69,7 +69,7 @@ class MysqlConnectionTest < ActiveRecord::TestCase end def test_bind_value_substitute - bind_param = @connection.substitute_at('foo', 0) + bind_param = @connection.substitute_at('foo') assert_equal Arel.sql('?'), bind_param.to_sql end diff --git a/activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb b/activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb index 7d6c15c826..c3c696b871 100644 --- a/activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb +++ b/activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb @@ -304,7 +304,7 @@ module ActiveRecord end def test_substitute_at - bind = @connection.substitute_at(nil, 0) + bind = @connection.substitute_at(nil) assert_equal Arel.sql('$1'), bind.to_sql end diff --git a/activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb b/activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb index 54e0309167..d83c65cf0e 100644 --- a/activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb +++ b/activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb @@ -133,7 +133,7 @@ module ActiveRecord end def test_bind_value_substitute - bind_param = @conn.substitute_at('foo', 0) + bind_param = @conn.substitute_at('foo') assert_equal Arel.sql('?'), bind_param.to_sql end |