capybara-firebug 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|