spec/spec_helper.rb in restpack_serializer-0.6.12 vs spec/spec_helper.rb in restpack_serializer-0.6.13
- old
+ new
@@ -3,10 +3,12 @@
require './spec/fixtures/db'
require './spec/fixtures/serializers'
require './spec/support/factory'
require 'database_cleaner'
require 'coveralls'
+
+Coveralls::Output.silent = true unless ENV["CI"]
Coveralls.wear!
FactoryGirl.find_definitions
RSpec.configure do |config|
config.include FactoryGirl::Syntax::Methods
@@ -16,13 +18,9 @@
DatabaseCleaner.clean_with(:truncation)
end
config.before(:each) do
DatabaseCleaner.strategy = :transaction
- end
-
- config.before(:each, :js => true) do
- DatabaseCleaner.strategy = :truncation
end
config.before(:each) do
DatabaseCleaner.start
end