Sha256: 43a01fe02e95bb169e4c17d76feefb2061a55baaa0d9100ea02273399595180c
Contents?: true
Size: 649 Bytes
Versions: 1
Compression:
Stored size: 649 Bytes
Contents
require 'rspec' require './lib/restpack_serializer' require './spec/fixtures/db' require './spec/fixtures/serializers' require './spec/support/factory' require 'database_cleaner' FactoryGirl.find_definitions RSpec.configure do |config| config.include FactoryGirl::Syntax::Methods config.before(:suite) do 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 config.after(:each) do DatabaseCleaner.clean end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
restpack_serializer-0.2.3 | spec/spec_helper.rb |