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:
parent
a54511f153
commit
a8c59ec56c
@ -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
|
||||
|
||||
@ -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"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user