Add spec/support/factory_girl

Just for consistency with our Capybara, DatabaseCleaner, WebMock, etc.
setups.
This commit is contained in:
Robert Speicher 2015-06-28 20:16:10 -04:00
parent a7773dd7e5
commit 366799bbf1
2 changed files with 6 additions and 4 deletions

View file

@ -13,12 +13,11 @@ RSpec.configure do |config|
config.use_instantiated_fixtures = false
config.mock_with :rspec
config.include Devise::TestHelpers, type: :controller
config.include LoginHelpers, type: :feature
config.include LoginHelpers, type: :request
config.include FactoryGirl::Syntax::Methods
config.include Devise::TestHelpers, type: :controller
config.include TestEnv
config.infer_spec_type_from_file_location!
config.raise_errors_for_deprecations!

View file

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