diff options
author | utilum <oz@utilum.com> | 2018-07-23 03:07:51 +0300 |
---|---|---|
committer | utilum <oz@utilum.com> | 2018-08-13 09:57:32 +0200 |
commit | bef6c8bbe8faf2cf3538e9611eaddc0b2da4d038 (patch) | |
tree | b0eb8cd63505dd32b930dac3684396eb27a2c1e5 /activerecord/test/cases/tasks/sqlite_rake_test.rb | |
parent | f2970a08b57ebcdb9cbf8eec5d10a7f04eb7b9d3 (diff) | |
download | rails-bef6c8bbe8faf2cf3538e9611eaddc0b2da4d038.tar.gz rails-bef6c8bbe8faf2cf3538e9611eaddc0b2da4d038.tar.bz2 rails-bef6c8bbe8faf2cf3538e9611eaddc0b2da4d038.zip |
Stub with Minitest and test with MethodCallAssertions
Diffstat (limited to 'activerecord/test/cases/tasks/sqlite_rake_test.rb')
-rw-r--r-- | activerecord/test/cases/tasks/sqlite_rake_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/tasks/sqlite_rake_test.rb b/activerecord/test/cases/tasks/sqlite_rake_test.rb index 7eb062b456..c42afd0e42 100644 --- a/activerecord/test/cases/tasks/sqlite_rake_test.rb +++ b/activerecord/test/cases/tasks/sqlite_rake_test.rb @@ -47,9 +47,9 @@ if current_adapter?(:SQLite3Adapter) def test_db_create_with_file_does_nothing File.stub(:exist?, true) do - ActiveRecord::Base.expects(:establish_connection).never - - ActiveRecord::Tasks::DatabaseTasks.create @configuration, "/rails/root" + assert_not_called(ActiveRecord::Base, :establish_connection) do + ActiveRecord::Tasks::DatabaseTasks.create @configuration, "/rails/root" + end end end |