From 942ee6ddb4fe5b28a369836c44a9984a4b112a94 Mon Sep 17 00:00:00 2001 From: Kyuden Date: Wed, 28 May 2014 03:12:18 +0900 Subject: [PATCH] Config syntax_sugar of factorygirl --- spec/spec_helper.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 9bd0a3b..897babc 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -33,6 +33,9 @@ RSpec.configure do |config| # config.mock_with :flexmock # config.mock_with :rr + # Syntax sugar to use the FactoryGirl methods directly instead FactoryGirl.create ete. + config.include FactoryGirl::Syntax::Methods + # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures config.fixture_path = "#{::Rails.root}/spec/fixtures"