diff --git a/examples/config/database.yml.example b/examples/config/database.yml.example index 64f2dec..87c894d 100644 --- a/examples/config/database.yml.example +++ b/examples/config/database.yml.example @@ -1,8 +1,8 @@ #This is an example of what database.yml *should* look like (when I wrote it) #The real database.yml is generated automatically by the active record model lib (so it can be correct) -two: +two: adapter: sqlite3 database: /path/to/examples/features/support/../../db/activerecord_two.db -one: +one: adapter: sqlite3 database: /path/to/examples/features/support/../../db/activerecord_one.db diff --git a/lib/database_cleaner/cleaners.rb b/lib/database_cleaner/cleaners.rb index 20cbf5f..d6f6cce 100644 --- a/lib/database_cleaner/cleaners.rb +++ b/lib/database_cleaner/cleaners.rb @@ -10,7 +10,7 @@ module DatabaseCleaner def [](orm, **opts) raise ArgumentError if orm.nil? fetch([orm, opts]) { add_cleaner(orm, **opts) } - end + end def strategy=(strategy) values.each { |cleaner| cleaner.strategy = strategy }