Sha256: c263ecdbcc4c4649966e6af14941ca1a00cd5433777426791356eeb525b97c41

Contents?: true

Size: 396 Bytes

Versions: 75

Compression:

Stored size: 396 Bytes

Contents

RSpec.configure do |config|
  #additional factory_girl configuration

  # Factory girl methods don't need to be prefaced with FactoryGirl
  config.include FactoryGirl::Syntax::Methods

  # Best each test suite is run, make sure the factories are valid
  config.before(:suite) do
    begin
      DatabaseCleaner.start
      FactoryGirl.lint
    ensure
      DatabaseCleaner.clean
    end
  end
end

Version data entries

75 entries across 70 versions & 3 rubygems

Version Path
horse_power-0.1.6 lib/generators/horse_power/setup/templates/rspec_factory_girl.rb
horse_power-0.1.5 lib/generators/horse_power/setup/templates/rspec_factory_girl.rb
horse_power-0.1.2 lib/generators/horse_power/setup/templates/rspec_factory_girl.rb
horse_power-0.1.1 lib/generators/horse_power/setup/templates/rspec_factory_girl.rb
horse_power-0.1.0 lib/generators/horse_power/setup/templates/rspec_factory_girl.rb
horse_power-0.0.1 lib/generators/horse_power/setup/templates/rspec_factory_girl.rb
json_voorhees-1.5.1 lib/generators/json_voorhees/setup_app/templates/rspec_factory_girl.rb
json_voorhees-1.5.0 lib/generators/json_voorhees/setup_app/templates/rspec_factory_girl.rb
json_voorhees-1.4.9 lib/generators/json_voorhees/setup_app/templates/rspec_factory_girl.rb
json_voorhees-1.4.8 lib/generators/json_voorhees/setup_app/templates/rspec_factory_girl.rb
json_voorhees-1.4.7 lib/generators/json_voorhees/setup_app/templates/rspec_factory_girl.rb
json_voorhees-1.4.6 lib/generators/json_voorhees/setup_app/templates/rspec_factory_girl.rb
json_voorhees-1.4.5 lib/generators/json_voorhees/setup_app/templates/rspec_factory_girl.rb
json_voorhees-1.4.2 lib/generators/json_voorhees/setup_app/templates/rspec_factory_girl.rb
json_voorhees-1.4.1 lib/generators/json_voorhees/setup_app/templates/rspec_factory_girl.rb
json_voorhees-1.4.0 lib/generators/json_voorhees/setup_app/templates/rspec_factory_girl.rb
json_voorhees-1.3.2 lib/generators/json_voorhees/setup_app/templates/rspec_factory_girl.rb
json_voorhees-1.3.1 lib/generators/json_voorhees/setup_app/templates/rspec_factory_girl.rb
json_voorhees-1.3.0 lib/generators/json_voorhees/setup_app/templates/rspec_factory_girl.rb
arcadex-1.2.3 test/test_app/spec/support/factory_girl.rb