Sha256: 94d4377a3fb7b90696c2e2f93a033dcdfb0f4132138eaafa9f60928d0d1c53a3

Contents?: true

Size: 1005 Bytes

Versions: 2

Compression:

Stored size: 1005 Bytes

Contents

# @announce-output
Feature:
  I would like Factory Bot Sequences gem to automatically register sequences

  Background:
    Given I successfully run `bundle exec rails new testapp --skip-bundle --skip-sprockets --skip-javascript`
    And I cd to "testapp"
    And I add "factory_bot_rails" as a dependency
    And I add "factory_bot_sequences" from this project as a dependency

  Scenario: Using Factory Bot Sequences registers predefined sequences
    And I run `bundle install`
    And I run `bundle exec rails generate model User name`
    And I run `bundle exec rake db:migrate`
    When I write to "test/unit/user_test.rb" with:
      """
      require 'test_helper'

      class UserTest < ActiveSupport::TestCase
        test "factory_bot should know name sequence" do
          user = FactoryBot.create(:user)
          assert user.name
        end
      end
      """
    And I run `bundle exec rake test`
    Then the output should contain "1 runs, 1 assertions, 0 failures, 0 errors, 0 skips"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
factory_bot_sequences-4.8.4 features/sequences.feature
factory_bot_sequences-4.8.3 features/sequences.feature