lib/lucid/generators/project/browser-symbiont.rb in lucid-0.0.9 vs lib/lucid/generators/project/browser-symbiont.rb in lucid-0.1.0
- old
+ new
@@ -3,17 +3,18 @@
@@browser = false
def self.start
unless @@browser
- target = ENV['BROWSER']
+ target = ENV['BROWSER'] || 'firefox'
@@browser = watir_browser(target)
end
@@browser
end
def self.stop
@@browser.quit if @@browser
+ @@browser = false
end
private
def self.watir_browser(target)