Sha256: 0d344187e7b4c460a34d6625ab9da2bf08ab545134cf92b6afe3285e0078280e

Contents?: true

Size: 1.29 KB

Versions: 25

Compression:

Stored size: 1.29 KB

Contents

@disable-bundler
Feature:
  In order to not have to manually configure factory girl as the testing fixture replacement
  by using the --fixture-replacement=factory_girl option
  as a Rails3 and Factory Girl user
  I would like the Factory Girl Rails gem to configure Factory Girl
  as the fixture replacement.

  Background:
    Given I successfully run `bundle exec rails new testapp`
    And I cd to "testapp"
    And I add "factory_girl_rails" from this project as a dependency

  Scenario: Using Factory Girl and Factory Girl Rails with Test Unit generates
  a factory file and does not generate a fixture file
    And I successfully run `bundle install`
    And I successfully run `bundle exec rails generate model User name:string`
    Then the following files should exist:
      | test/factories/users.rb |
    And the following files should not exist:
      | test/fixtures/users.yml |


  Scenario: Using Factory Girl and Factory Girl Rails with RSpec should generate a factory file
    And I add "rspec-rails" as a dependency
    And I successfully run `bundle install`
    And I successfully run `bundle exec rails generate model User name:string`
    Then the following files should exist:
      | spec/factories/users.rb |
    And the following files should not exist:
      | spec/fixtures/users.yml |

Version data entries

25 entries across 25 versions & 3 rubygems

Version Path
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/factory_girl_rails-4.1.0/features/fixture_replacement_config.feature
factory_girl_rails-4.1.0 features/fixture_replacement_config.feature
factory_girl_rails-4.0.0 features/fixture_replacement_config.feature
factory_girl_rails-4.0.0.rc1 features/fixture_replacement_config.feature
factory_girl_rails-3.6.0 features/fixture_replacement_config.feature
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/factory_girl_rails-3.2.0/features/fixture_replacement_config.feature
factory_girl_rails-3.5.0 features/fixture_replacement_config.feature
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/factory_girl_rails-3.2.0/features/fixture_replacement_config.feature
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/factory_girl_rails-3.2.0/features/fixture_replacement_config.feature
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/factory_girl_rails-3.2.0/features/fixture_replacement_config.feature
rails-uploader-0.0.4 vendor/bundle/ruby/1.9.1/gems/factory_girl_rails-3.2.0/features/fixture_replacement_config.feature
factory_girl_rails-3.4.0 features/fixture_replacement_config.feature
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/factory_girl_rails-3.2.0/features/fixture_replacement_config.feature
rails-uploader-0.0.1 vendor/bundle/ruby/1.9.1/gems/factory_girl_rails-3.2.0/features/fixture_replacement_config.feature
factory_girl_rails-3.3.0 features/fixture_replacement_config.feature
factory_girl_rails-3.2.0 features/fixture_replacement_config.feature
factory_girl_rails-3.1.0 features/fixture_replacement_config.feature
factory_girl_rails-3.0.0 features/fixture_replacement_config.feature
factory_girl_rails-2.0.0 features/fixture_replacement_config.feature
factory_girl_rails-2.0.0.rc features/fixture_replacement_config.feature