mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
fixes brittle spec
This commit is contained in:
parent
56ca7001d4
commit
6951cd707b
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@ module DatabaseCleaner
|
|||
subject { ActiveRecord.config_file_location }
|
||||
|
||||
it "should default to DatabaseCleaner.root / config / database.yml" do
|
||||
ActiveRecord.config_file_location=nil
|
||||
DatabaseCleaner.should_receive(:app_root).and_return("/path/to")
|
||||
subject.should == '/path/to/config/database.yml'
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue