Sha256: c2dca5dc7a26db3d7f5812f4105792a8cb46e4a39b4afa763514f6dd9fd4d456

Contents?: true

Size: 255 Bytes

Versions: 27

Compression:

Stored size: 255 Bytes

Contents

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

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
raus22-jspec-2.0.4 server/browsers.rb
raus22-jspec-2.0.5 server/browsers.rb
raus22-jspec-2.0.6 server/browsers.rb
raus22-jspec-2.0.7 server/browsers.rb
visionmedia-jspec-2.0.0 server/browsers.rb
visionmedia-jspec-2.0.1 server/browsers.rb
visionmedia-jspec-2.0.2 server/browsers.rb
visionmedia-jspec-2.0.3 server/browsers.rb
visionmedia-jspec-2.1.0 server/browsers.rb
visionmedia-jspec-2.2.0 server/browsers.rb
visionmedia-jspec-2.2.1 server/browsers.rb
visionmedia-jspec-2.3.0 server/browsers.rb
visionmedia-jspec-2.3.1 server/browsers.rb
visionmedia-jspec-2.4.0 server/browsers.rb
visionmedia-jspec-2.4.1 server/browsers.rb
visionmedia-jspec-2.4.2 server/browsers.rb
visionmedia-jspec-2.4.3 server/browsers.rb
visionmedia-jspec-2.5.0 server/browsers.rb
visionmedia-jspec-2.5.1 server/browsers.rb
visionmedia-jspec-2.6.0 server/browsers.rb