From 8c8c56457813e7fe2f72d55185744f744e67f97f Mon Sep 17 00:00:00 2001 From: "Jessie A. Young" Date: Thu, 7 Aug 2014 16:15:39 -0700 Subject: [PATCH] Remove unnecessary `--fixture-replacement` in spec * FG automatically configures FG as fixture replacement --- README.md | 2 +- features/generators.feature | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8393563..9320f4c 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ factory_girl_rails is available in the development group. If it's not, Rails will generate standard .yml files instead of factory files. factory_girl takes an option `suffix: 'some_suffix'` to generate factories as -1modelname_some_suffix.rb`. +`modelname_some_suffix.rb`. If you use factory_girl for fixture replacement and already have a `factories.rb` file in the directory that contains your tests, diff --git a/features/generators.feature b/features/generators.feature index 547b02b..a7dc6c9 100644 --- a/features/generators.feature +++ b/features/generators.feature @@ -10,8 +10,8 @@ Feature: Scenario: The factory_girl_rails generators create a factory file for each model if there is not a factories.rb file When I run `bundle install` with a clean environment - And I run `bundle exec rails generate model User name:string --fixture-replacement=factory_girl` with a clean environment - And I run `bundle exec rails generate model Namespaced::User name:string --fixture-replacement=factory_girl` with a clean environment + And I run `bundle exec rails generate model User name:string` with a clean environment + And I run `bundle exec rails generate model Namespaced::User name:string` with a clean environment Then the output should contain "test/factories/users.rb" And the output should contain "test/factories/namespaced_users.rb" And the file "test/factories/users.rb" should contain "factory :user do" @@ -24,5 +24,5 @@ Feature: FactoryGirl.define do end """ - And I run `bundle exec rails generate model User name:string --fixture-replacement=factory_girl` with a clean environment + And I run `bundle exec rails generate model User name:string` with a clean environment Then the file "test/factories.rb" should contain "factory :user do"