Sha256: f0e94d348dcee05908c6e559a055e5ef31f59ae47a68d08178f47cfa8adbb3fd

Contents?: true

Size: 1.2 KB

Versions: 8

Compression:

Stored size: 1.2 KB

Contents

Feature: add migrations to the project

  Background:
    Given I have a project with clearance

  Scenario: Users table does not exist
    When I install dependencies
    And I successfully run `bundle exec rails generate clearance:install`
    And I successfully run `ls db/migrate`
    Then the output should contain:
      """
      create_users.rb
      """

  Scenario: Users table without clearance fields exists in the database
    When I install dependencies
    And I create a simple user model
    And I add an existing user
    And I successfully run `bundle exec rails generate clearance:install`
    And I successfully run `bundle exec rake db:migrate`
    Then the output should contain:
      """
      add_clearance_to_users.rb
      """
    And the existing user should have a remember token

  Scenario: Users table with clearance fields exists in the database
    When I install dependencies
    And I create a migration with clearance fields
    And I successfully run `bundle exec rake db:migrate`
    And I successfully run `bundle exec rails generate clearance:install`
    And I successfully run `ls db/migrate`
    Then the output should not contain:
      """
      add_clearance_to_users.rb
      """

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
clearance-1.6.0 features/add_migrations_to_project.feature
clearance-1.5.1 features/add_migrations_to_project.feature
clearance-1.5.0 features/add_migrations_to_project.feature
clearance-1.4.3 features/add_migrations_to_project.feature
clearance-1.4.2 features/add_migrations_to_project.feature
clearance-1.4.1 features/add_migrations_to_project.feature
clearance-1.4.0 features/add_migrations_to_project.feature
clearance-1.3.0 features/add_migrations_to_project.feature