src/browsers.rb in jspec-3.2.1 vs src/browsers.rb in jspec-3.3.0
- old
+ new
@@ -30,11 +30,11 @@
def self.inherited subclass
subclasses << subclass
end
##
- # Weither or not the browser is supported.
+ # Whether or not the browser is supported.
def supported?; true end
##
# Server setup.
@@ -92,16 +92,13 @@
end
def visit uri
system 'open', uri if macos?
system 'start', uri if windows?
+ system 'xdg-open', uri if linux?
end
- def supported?
- macos?
- end
-
def to_s
'Default'
end
end
@@ -175,14 +172,15 @@
def self.matches_name? string
string =~ /google|chrome/i
end
def supported?
- macos?
+ macos? or linux?
end
def visit uri
system "open -g -a 'Google Chrome' #{uri}" if macos?
+ system "google-chrome #{uri}" if linux?
end
def to_s
'Chrome'
end