configure factory_girl for rspec

This commit is contained in:
Lars Henrik Mai 2016-02-17 08:29:12 +01:00
parent c0b504039a
commit 0c2dcd9689
2 changed files with 4 additions and 1 deletions

View file

@ -28,7 +28,7 @@ ActiveRecord::Migration.maintain_test_schema!
RSpec.configure do |config|
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
config.fixture_path = "#{::Rails.root}/spec/fixtures"
# config.fixture_path = "#{::Rails.root}/spec/fixtures"
# If you're not using ActiveRecord, or you'd prefer not to run each of your
# examples within a transaction, remove the following line or assign false

View file

@ -0,0 +1,3 @@
RSpec.configure do |config|
config.include FactoryGirl::Syntax::Methods
end