Skip to content

Commit

Permalink
Added better test for opera support (tested in Ubuntu without opera i…
Browse files Browse the repository at this point in the history
…nstalled). Functional test would hang without this.
  • Loading branch information
Adam Pearson committed Mar 31, 2009
1 parent a8ccf81 commit 9a5b2cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/jstest.rb
Expand Up @@ -138,6 +138,12 @@ class OperaBrowser < Browser
def initialize(path='c:\Program Files\Opera\Opera.exe') def initialize(path='c:\Program Files\Opera\Opera.exe')
@path = path @path = path
end end

def supported?
if linux?
return system("which opera")
end
end


def setup def setup
if windows? if windows?
Expand Down

0 comments on commit 9a5b2cf

Please sign in to comment.