Sha256: f3b447d16889779a53500681e06854fd1bf3a1bd2ea0d061c8b912194c67e64d

Contents?: true

Size: 312 Bytes

Versions: 40

Compression:

Stored size: 312 Bytes

Contents

require 'factory_girl_rails'

RSpec.configure do |config|
  config.include FactoryGirl::Syntax::Methods

  config.before(:suite) do
    begin
      DatabaseCleaner.clean_with(:truncation)
      DatabaseCleaner.start
      #FactoryGirl.lint
    ensure
      DatabaseCleaner.clean
    end
  end

end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
optimacms-0.3.35 spec/support/factory_girl.rb
optimacms-0.3.34 spec/support/factory_girl.rb
optimacms-0.3.30 spec/support/factory_girl.rb
optimacms-0.3.29 spec/support/factory_girl.rb
optimacms-0.3.23 spec/support/factory_girl.rb
optimacms-0.3.15 spec/support/factory_girl.rb
optimacms-0.3.12 spec/support/factory_girl.rb
optimacms-0.3.11 spec/support/factory_girl.rb
optimacms-0.2.26 spec/support/factory_girl.rb
optimacms-0.2.25 spec/support/factory_girl.rb
optimacms-0.2.24 spec/support/factory_girl.rb
optimacms-0.3.4 spec/support/factory_girl.rb
optimacms-0.3.3 spec/support/factory_girl.rb
optimacms-0.2.21 spec/support/factory_girl.rb
optimacms-0.2.20 spec/support/factory_girl.rb
optimacms-0.2.16 spec/support/factory_girl.rb
optimacms-0.2.15 spec/support/factory_girl.rb
optimacms-0.2.14 spec/support/factory_girl.rb
optimacms-0.2.13 spec/support/factory_girl.rb
optimacms-0.2.12 spec/support/factory_girl.rb