Permalink
Browse files

don't use env variable - check watir version

  • Loading branch information...
1 parent 0fb81dc commit 67dd71323babec6b1c6b510522235224cce335bc Hugh McGowan committed Feb 2, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 spec/implementation.rb
View
@@ -6,15 +6,14 @@
WatirSpec.implementation do |imp|
imp.name = :watir
-
if ENV['watir_browser'] =~ /firefox/
imp.browser_class = FireWatir::Firefox
browser = :firefox
else
WatirSpec.persistent_browser = false
imp.browser_class = Watir::IE
browser = :ie
- browser_version = (ENV['watir_browser_version'] || :ie8).to_sym
+ browser_version = "ie#{imp.browser_class.version.to_i}".to_sym
end
imp.guard_proc = lambda { |args|

0 comments on commit 67dd713

Please sign in to comment.