Skip to content

Commit

Permalink
Correct reference to wrong block variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-holmes committed Jul 20, 2013
1 parent 2a95252 commit 6f04b04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/capybara/rspec.rb
Expand Up @@ -17,8 +17,8 @@
end
config.before do |example|
if self.class.include?(Capybara::DSL)
Capybara.current_driver = Capybara.javascript_driver if ex.metadata[:js]
ampleCapybara.current_driver = ex.metadata[:driver] if ex.metadata[:driver]
Capybara.current_driver = Capybara.javascript_driver if example.metadata[:js]
ampleCapybara.current_driver = example.metadata[:driver] if example.metadata[:driver]
end
end
end

0 comments on commit 6f04b04

Please sign in to comment.