1
0
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:
Dan Barber 2013-06-05 22:18:23 +01:00
parent 0f2f58c42d
commit 9c672e65e4

View File

@ -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'