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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "capybara-firebug"
5
- s.version = "0.0.2"
5
+ s.version = "0.0.3"
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ["John Firebaugh"]
8
8
  s.email = ["john.firebaugh@gmail.com"]
@@ -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
- Before '@firebug' do
30
- Capybara.current_driver = :selenium_with_firebug
31
- end
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
- require 'ruby-debug'
35
- debugger
34
+ Then /^stop and let me debug$/ do
35
+ require 'ruby-debug'
36
+ debugger
37
+ end
36
38
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - John Firebaugh