Add spec/support/factory_girl
Just for consistency with our Capybara, DatabaseCleaner, WebMock, etc. setups.
This commit is contained in:
parent
a7773dd7e5
commit
366799bbf1
2 changed files with 6 additions and 4 deletions
|
@ -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!
|
||||
|
||||
|
|
3
spec/support/factory_girl.rb
Normal file
3
spec/support/factory_girl.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
RSpec.configure do |config|
|
||||
config.include FactoryGirl::Syntax::Methods
|
||||
end
|
Loading…
Reference in a new issue