Put database cleaner back in
This commit is contained in:
parent
d98ac70155
commit
d3d0182164
1 changed files with 1 additions and 3 deletions
|
|
@ -26,14 +26,12 @@ RSpec.configure do |config|
|
||||||
DatabaseCleaner.orm = "mongo_mapper"
|
DatabaseCleaner.orm = "mongo_mapper"
|
||||||
|
|
||||||
config.before(:suite) do
|
config.before(:suite) do
|
||||||
DatabaseCleaner.clean_with(:truncation)
|
|
||||||
DatabaseCleaner.clean
|
|
||||||
stub_signature_verification
|
stub_signature_verification
|
||||||
end
|
end
|
||||||
|
|
||||||
config.before(:each) do
|
config.before(:each) do
|
||||||
stub_sockets
|
stub_sockets
|
||||||
User.stub!(:allowed_email?).and_return(:true)
|
DatabaseCleaner.clean
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue