Permalink
Browse files

add check for watir and version in the guard

  • Loading branch information...
1 parent 67dd713 commit d26f1ebf7235ebb3b1a64e3dda7a8334b94f82e9 Hugh McGowan committed Feb 2, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 spec/implementation.rb
View
@@ -6,6 +6,7 @@
WatirSpec.implementation do |imp|
imp.name = :watir
+
if ENV['watir_browser'] =~ /firefox/
imp.browser_class = FireWatir::Firefox
browser = :firefox
@@ -17,7 +18,7 @@
end
imp.guard_proc = lambda { |args|
- args.any? {|arg| arg == :watir || arg == [:watir, browser] || arg == :ie || arg == browser_version}
+ args.any? {|arg| arg == :watir || arg == [:watir, browser] || arg == :ie || arg == browser_version || arg == [:watir, browser_version] }
}
end

0 comments on commit d26f1eb

Please sign in to comment.