test/cases/dbtask_test.rb in secondbase-2.0.0 vs test/cases/dbtask_test.rb in secondbase-2.1.0

- old
+ new

@@ -205,11 +205,21 @@ run_db :migrate assert_match(/version: 20141214142700/, run_db(:version)) assert_match(/version: 20151202075826/, run_secondbase(:version)) end + def test_secondbase_db_tasks_disabled + refute_dummy_databases + run_db :create, :stdout, false + assert_dummy_created_but_not_secondbase + end private + + def assert_dummy_created_but_not_secondbase + assert_equal 'base.sqlite3', dummy_database_sqlite + refute_match(/secondbase_test/, `mysql -uroot -e "SHOW DATABASES"`) + end def assert_no_tables if ActiveRecord::Base.connection.respond_to? :data_sources assert_equal [], ActiveRecord::Base.connection.data_sources assert_equal [], SecondBase::Base.connection.data_sources