silverstripe-framework/thirdparty/jquery-concrete/vendor/jspec/server/browsers.rb

16 lines
255 B
Ruby
Raw Normal View History

module JSpec
class Browser
def open url
`open -g -a #{name} #{url}`
end
def name
self.class.to_s.split('::').last
end
class Firefox < self; end
class Safari < self; end
class Opera < self; end
end
end