From c6a401dd5f83f1f2f73cce5d4abc5322d24303e7 Mon Sep 17 00:00:00 2001 From: expeehaa Date: Thu, 21 Jan 2021 08:26:59 +0100 Subject: [PATCH] Remove trailing whitespaces. --- examples/config/database.yml.example | 4 ++-- lib/database_cleaner/cleaners.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/config/database.yml.example b/examples/config/database.yml.example index 64f2dec8..87c894d2 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 20cbf5fa..d6f6cce8 100644 --- a/lib/database_cleaner/cleaners.rb +++ b/lib/database_cleaner/cleaners.rb @@ -10,7 +10,7 @@ def initialize hash={} 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 }