features/features_generator.feature in diesel-0.1.4 vs features/features_generator.feature in diesel-0.1.5
- old
+ new
@@ -1,6 +1,5 @@
-@disable-bundler
Feature: reusable features generator
Background:
Given a directory named "testengine"
When I cd to "testengine"
@@ -63,32 +62,34 @@
Then %{I should receive a warm greeting} do
Then %{I should see "Hello there"}
end
"""
When I cd to ".."
- And I successfully run "rails new testapp"
+ And I successfully run `bundle exec rails new testapp`
And I cd to "testapp"
And I append to "Gemfile" with:
"""
- gem "cucumber-rails", "~> 0.3.2"
- gem "capybara", "~> 0.4.0"
- gem "rspec", "~> 1.3.0"
+ gem "cucumber-rails", ">= 0.5.1"
+ gem "capybara", ">= 1.0.0.beta1"
+ gem "rspec"
+ gem "database_cleaner", :group => :test
"""
When I add the "testengine" as a diesel engine
- And I run "bundle install --local"
- And I successfully run "rails generate cucumber:install --trace"
- And I successfully run "rails generate testengine:features --trace"
+ And I reset Bundler environment variable
+ And I run `bundle install --local`
+ And I successfully run `bundle exec rails generate cucumber:install --trace`
+ And I successfully run `bundle exec rails generate testengine:features --trace`
Scenario: copy features into an app from a diesel engine
- When I run "bundle exec cucumber -r features features/testengine/examples.feature"
+ When I run `bundle exec cucumber -r features features/testengine/examples.feature`
Then it should pass with:
"""
1 scenario (1 passed)
"""
Scenario: view generator descriptions from an app with a diesel engine
- When I successfully run "rails generate testengine:features -h"
+ When I successfully run `bundle exec rails generate testengine:features -h`
Then the output should contain:
"""
Copy cucumber feature files for the engine into your application.
"""