only remove the global database if we actually made one
This commit is contained in:
1 parent
eee01c9e15
commit
87560c9edf
1 file changed
+4
-2
@@ -36,8 +36,10 @@ RSpec.configure do |config|
|
||||
config.after(:suite) do
|
||||
# Remove the global server after the suite has finished running and then
|
||||
# clean the database in case it left anything lying around.
|
||||
GLOBAL_SERVER.destroy
|
||||
DatabaseCleaner.clean
|
||||
if defined?(GLOBAL_SERVER)
|
||||
GLOBAL_SERVER.destroy
|
||||
DatabaseCleaner.clean
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user