mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
Configure factory girl to generate in /spec.
This commit is contained in:
parent
0f2f58c42d
commit
9c672e65e4
@ -48,6 +48,12 @@ module DanBarberPhoto
|
||||
# Prefer SASS syntax for stylesheets
|
||||
config.sass.preferred_syntax = :sass
|
||||
|
||||
# Configure factories
|
||||
config.generators do |g|
|
||||
g.test_framework :rspec, fixture: true
|
||||
g.fixture_replacement :factory_girl, dir: 'spec/factories'
|
||||
end
|
||||
|
||||
if Rails.env.production?
|
||||
# Heartbeat
|
||||
config.middleware.insert_before 0, 'Heartbeat'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user