Skip to content

Commit

Permalink
being consistent and always using bundle exec in the cucumber steps
Browse files Browse the repository at this point in the history
  • Loading branch information
gardelea committed Apr 11, 2012
1 parent bcae4c4 commit 79f3348
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions features/rails3_app.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@ As a email_spec dev
I want to verify that the example rails 3 app runs all of it's features as expected

Scenario: generators test
When I run "rails g email_spec:steps" in the rails3 app
Given the rails3 app is setup with the latest generators
When I run "bundle exec rails g email_spec:steps" in the rails3 app
Then the rails3 app should have the email steps in place

Scenario: regression test
Given the rails3 app is setup with the latest email steps
When I run "rake db:migrate RAILS_ENV=test" in the rails3 app
When I run "bundle exec rake db:migrate RAILS_ENV=test" in the rails3 app
And I run "bundle exec cucumber features -q --no-color" in the rails3 app
Then I should see the following summary report:
"""
15 scenarios (7 failed, 8 passed)
136 steps (7 failed, 1 skipped, 128 passed)
"""

When I run "rake spec RAILS_ENV=test" in the rails3 app
When I run "bundle exec rake spec RAILS_ENV=test" in the rails3 app
Then I should see the following summary report:
"""
9 examples, 0 failures
Expand Down

0 comments on commit 79f3348

Please sign in to comment.