lib/database_cleaner/configuration.rb in database_cleaner-1.1.1 vs lib/database_cleaner/configuration.rb in database_cleaner-1.2.0
- old
+ new
@@ -35,10 +35,10 @@
def app_root=(desired_root)
@app_root = desired_root
end
def app_root
- @app_root || Dir.pwd
+ @app_root ||= Dir.pwd
end
def connections
# double yuck.. can't wait to deprecate this whole class...
unless @cleaners