1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00

Insert FactoryGirl methods into spec helper.

This commit is contained in:
Dan Barber 2013-05-31 08:37:13 +01:00
parent a54511f153
commit a8c59ec56c
2 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,7 @@ require 'spec_helper'
describe PagesController do
describe "GET show" do
let(:test_page) { FactoryGirl.create(:page) }
let(:test_page) { create(:page) }
it "renders a page" do
get :show, name: test_page.name

View File

@ -17,6 +17,9 @@ RSpec.configure do |config|
# config.mock_with :flexmock
# config.mock_with :rr
# Include FactoryGirl methods
config.include FactoryGirl::Syntax::Methods
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
config.fixture_path = "#{::Rails.root}/spec/fixtures"