aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/fixtures_test.rb
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2018-07-10 23:31:37 +0300
committerbogdanvlviv <bogdanvlviv@gmail.com>2018-07-10 23:42:40 +0300
commitd2d72966c30e8a537ad1c5dbab52b148645d7b37 (patch)
tree6c7e0e4aec57cd730d33c89e7cb65174ee514d55 /activerecord/test/cases/fixtures_test.rb
parent23f80cee1845f85ed3aad4b4fb3211cdadf53da8 (diff)
downloadrails-d2d72966c30e8a537ad1c5dbab52b148645d7b37.tar.gz
rails-d2d72966c30e8a537ad1c5dbab52b148645d7b37.tar.bz2
rails-d2d72966c30e8a537ad1c5dbab52b148645d7b37.zip
Fix stubbed methods in test cases
Remove returning of `false` value for stubbed `lock_thread=` methods since there aren't any needs in it. Remove unnecessary returning of `true` for stubbed `drop_database` method. Follow up #33309. Related to #33162, #33326.
Diffstat (limited to 'activerecord/test/cases/fixtures_test.rb')
-rw-r--r--activerecord/test/cases/fixtures_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/fixtures_test.rb b/activerecord/test/cases/fixtures_test.rb
index 2d8cbed24e..2ead2c4816 100644
--- a/activerecord/test/cases/fixtures_test.rb
+++ b/activerecord/test/cases/fixtures_test.rb
@@ -842,7 +842,7 @@ class TransactionalFixturesOnConnectionNotification < ActiveRecord::TestCase
end.new
connection.pool = Class.new do
- def lock_thread=(lock_thread); false; end
+ def lock_thread=(lock_thread); end
end.new
connection.expects(:begin_transaction).with(joinable: false)
@@ -863,7 +863,7 @@ class TransactionalFixturesOnConnectionNotification < ActiveRecord::TestCase
end.new
connection.pool = Class.new do
- def lock_thread=(lock_thread); false; end
+ def lock_thread=(lock_thread); end
end.new
fire_connection_notification(connection)