mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Spacing.
This commit is contained in:
parent
ccf49bd3bf
commit
46e82b967e
1 changed files with 3 additions and 3 deletions
|
@ -232,7 +232,7 @@ RSpec.configure do |config|
|
||||||
DatabaseCleaner.clean_with(:truncation)
|
DatabaseCleaner.clean_with(:truncation)
|
||||||
end
|
end
|
||||||
|
|
||||||
config.before(:each) do |example|
|
config.before(:each) do |example|
|
||||||
DatabaseCleaner.strategy= example.metadata[:js] ? :truncation : :transaction
|
DatabaseCleaner.strategy= example.metadata[:js] ? :truncation : :transaction
|
||||||
DatabaseCleaner.start
|
DatabaseCleaner.start
|
||||||
end
|
end
|
||||||
|
@ -305,10 +305,10 @@ DatabaseCleaner[:active_record].strategy = :transaction
|
||||||
DatabaseCleaner[:mongo_mapper].strategy = :truncation
|
DatabaseCleaner[:mongo_mapper].strategy = :truncation
|
||||||
|
|
||||||
#How to specify particular connections
|
#How to specify particular connections
|
||||||
DatabaseCleaner[:active_record,{:connection => :two}]
|
DatabaseCleaner[:active_record, { :connection => :two }]
|
||||||
|
|
||||||
# You may also pass in the model directly:
|
# You may also pass in the model directly:
|
||||||
DatabaseCleaner[:active_record,{:model => ModelWithDifferentConnection}]
|
DatabaseCleaner[:active_record, { :model => ModelWithDifferentConnection }]
|
||||||
```
|
```
|
||||||
|
|
||||||
Usage beyond that remains the same with `DatabaseCleaner.start` calling any setup on the different configured connections, and `DatabaseCleaner.clean` executing afterwards.
|
Usage beyond that remains the same with `DatabaseCleaner.start` calling any setup on the different configured connections, and `DatabaseCleaner.clean` executing afterwards.
|
||||||
|
|
Loading…
Reference in a new issue