Configure rspec to include factory girl helpers
This commit is contained in:
parent
94704af113
commit
9d37916e17
@ -8,6 +8,7 @@ Spork.prefork do
|
|||||||
Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
|
Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
|
||||||
|
|
||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
|
config.include FactoryGirl::Syntax::Methods
|
||||||
config.infer_spec_type_from_file_location!
|
config.infer_spec_type_from_file_location!
|
||||||
config.use_transactional_fixtures = true
|
config.use_transactional_fixtures = true
|
||||||
config.after(:all) do
|
config.after(:all) do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user