Skip to content

Commit

Permalink
Remove remaining references to Cucumber
Browse files Browse the repository at this point in the history
* Use the defined step to rake cleanly.
* Remove leading spaces before JS driver. It causes inconsistent
  formatting.
  • Loading branch information
Greg Lazarev authored and Dan Croak committed Dec 31, 2012
1 parent 62fca98 commit f82b198
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 27 deletions.
12 changes: 4 additions & 8 deletions features/rake_clean.feature
Expand Up @@ -4,17 +4,13 @@ Feature: Rake works in the suspended project
Scenario: Running rake in the suspended project
When I suspend a project called "test_project"
And I cd to the "test_project" root
When I drop and create the required databases
And I run the rake task "db:create"
And I run the rake task "db:migrate"
And I run the rake task "db:test:prepare"
And I run rake
Then I see a successful response in the shell
And I drop and create the required databases
Then I can cleanly rake the project

Scenario: Making a spec then running rake
When I drop and create the required databases
And I suspend a project called "test_project"
When I suspend a project called "test_project"
And I generate "model post title:string"
And I drop and create the required databases
And I run the rake task "db:migrate"
And I run the rake task "db:test:prepare"
And I run the rake task "spec"
Expand Down
2 changes: 1 addition & 1 deletion features/step_definitions/suspenders_steps.rb
Expand Up @@ -55,7 +55,7 @@
And I run the rake task "db:create"
And I run the rake task "db:migrate"
And I run the rake task "db:test:prepare"
And I run the rake task "cucumber"
And I run rake
Then I see a successful response in the shell
}
end
Expand Down
19 changes: 1 addition & 18 deletions lib/suspenders/app_builder.rb
Expand Up @@ -150,24 +150,7 @@ def generate_rspec

def configure_capybara_webkit
append_file 'spec/spec_helper.rb' do
"\n Capybara.javascript_driver = :webkit"
end
end

def generate_cucumber(options = {})
generate 'cucumber:install', '--rspec', '--capybara'
inject_into_file 'config/cucumber.yml',
' -drb -r features',
:after => %{default: <%= std_opts %> features}
copy_file 'features_support_env.rb',
'features/support/env.rb',
:force => true
prepend_file 'features/support/env.rb', simplecov_init

if options[:webkit]
inject_into_file 'features/support/env.rb',
"\n Capybara.javascript_driver = :webkit",
:after => /Capybara.default_selector = :css/
"\nCapybara.javascript_driver = :webkit"
end
end

Expand Down

0 comments on commit f82b198

Please sign in to comment.