Skip to content

Commit

Permalink
Don't need to include Capybara by yourself
Browse files Browse the repository at this point in the history
  • Loading branch information
josepjaume committed Mar 28, 2013
1 parent 5a086b1 commit c5488f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions features/steps/rspec_compatibility.rb
Expand Up @@ -78,8 +78,6 @@ class RSpecCompatibility < Spinach::FeatureSteps
write_file('features/steps/greeting.rb',
'require "spinach/capybara"
class Greeting < Spinach::FeatureSteps
include Spinach::FeatureSteps::Capybara
Given "I am on the front page" do
visit "/"
end
Expand Down
2 changes: 2 additions & 0 deletions lib/spinach/capybara.rb
Expand Up @@ -76,3 +76,5 @@ def null_device

Spinach.hooks.on_error_step(&open_page)
Spinach.hooks.on_failed_step(&open_page)

Spinach::FeatureSteps.send :include, Spinach::FeatureSteps::Capybara

0 comments on commit c5488f4

Please sign in to comment.