capybara-firebug 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/capybara-firebug.gemspec +1 -1
- data/lib/capybara/firebug.rb +8 -6
- metadata +2 -2
data/capybara-firebug.gemspec
CHANGED
data/lib/capybara/firebug.rb
CHANGED
@@ -26,11 +26,13 @@ Capybara.register_driver :selenium_with_firebug do |app|
|
|
26
26
|
Capybara::Driver::Selenium.new(app, :browser => :firefox, :profile => profile)
|
27
27
|
end
|
28
28
|
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
if defined?(Cucumber)
|
30
|
+
Before '@firebug' do
|
31
|
+
Capybara.current_driver = :selenium_with_firebug
|
32
|
+
end
|
32
33
|
|
33
|
-
Then /^stop and let me debug$/ do
|
34
|
-
|
35
|
-
|
34
|
+
Then /^stop and let me debug$/ do
|
35
|
+
require 'ruby-debug'
|
36
|
+
debugger
|
37
|
+
end
|
36
38
|
end
|