Sha256: fc4831b1bdbc218ee1a0821c7cb566a8aa942029aa1fae731d224c0e83b066a7

Contents?: true

Size: 1017 Bytes

Versions: 1

Compression:

Stored size: 1017 Bytes

Contents

Feature: generate rspec integration tests with application

  Background:
    Given I have a project with clearance and the following gems:
      | gem                |
      | capybara           |
      | rspec-rails        |
      | factory_girl_rails |
      | database_cleaner   |
      | test-unit          |

  Scenario: generate a Rails app, run the generators, and run the tests
    When I install dependencies
    And I successfully run `bundle exec rails generate rspec:install`
    And I successfully run `bundle exec rails generate clearance:specs`
    And I successfully run `bundle exec rails generate clearance:install`
    Then the output should contain "Next steps"
    When I successfully run `bundle exec rake db:migrate`
    And I successfully run `bundle exec rake db:test:prepare`
    And I successfully run `bundle exec rspec`
    Then the output should contain "Finished"
    And the output should not contain "Failed examples"
    And the output should not contain "Could not find generator"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
clearance-1.7.0 features/integration_with_rspec.feature