Sha256: fa4287085be7a006c4ef2f518161067eb7b39f9022134d2528d48132077d11f0
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
Feature: I would like Factory Girl Sequences gem to automatically register sequences Background: Given I successfully run `bundle exec rails new testapp --skip-bundle` And I cd to "testapp" And I add "factory_girl_rails" as a dependency And I add "factory_girl_sequences" from this project as a dependency Scenario: Using Factory Girl Sequences registers predefined sequences And I run `bundle install` with a clean environment And I run `bundle exec rails generate model User name:string` with a clean environment And I run `bundle exec rake db:migrate` with a clean environment When I write to "test/unit/user_test.rb" with: """ require 'test_helper' class UserTest < ActiveSupport::TestCase test "factory_girl should know name sequence" do user = FactoryGirl.create(:user) assert user.name end end """ And I run `bundle exec rake test` with a clean environment Then the output should contain "1 tests, 1 assertions, 0 failures, 0 errors"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
factory_girl_sequences-4.0.0 | features/sequences.feature |