Methods
- S
- T
Instance Public methods
setup()
Link
test_drops_configurations_with_blank_hosts()
Link
test_drops_configurations_with_local_host()
Link
test_drops_configurations_with_local_ip()
Link
test_ignores_configurations_without_databases()
Link
# File activerecord/test/cases/tasks/database_tasks_test.rb, line 221 def test_ignores_configurations_without_databases @configurations[:development].merge!('database' => nil) ActiveRecord::Tasks::DatabaseTasks.expects(:drop).never ActiveRecord::Tasks::DatabaseTasks.drop_all end
test_ignores_remote_databases()
Link
# File activerecord/test/cases/tasks/database_tasks_test.rb, line 229 def test_ignores_remote_databases @configurations[:development].merge!('host' => 'my.server.tld') $stderr.stubs(:puts).returns(nil) ActiveRecord::Tasks::DatabaseTasks.expects(:drop).never ActiveRecord::Tasks::DatabaseTasks.drop_all end
test_warning_for_remote_databases()
Link
# File activerecord/test/cases/tasks/database_tasks_test.rb, line 238 def test_warning_for_remote_databases @configurations[:development].merge!('host' => 'my.server.tld') $stderr.expects(:puts).with('This task only modifies local databases. my-db is on a remote host.') ActiveRecord::Tasks::DatabaseTasks.drop_all end