Sha256: c05380c6ec09e71a793f00558bef7985f342fe8414172682006f0e07051fbf2c
Contents?: true
Size: 781 Bytes
Versions: 1
Compression:
Stored size: 781 Bytes
Contents
begin require 'spec' module Sauce module RSpec class SeleniumExampleGroup < Spec::Example::ExampleGroup attr_reader :selenium before(:each) do @selenium.start end after(:each) do @selenium.stop end def execute(*args) config = Sauce::Config.new config.browsers.each do |os, browser, version| @selenium = Sauce::Selenium.new({:os => os, :browser => browser, :browser_version => version}) super(*args) end end alias_method :page, :selenium alias_method :s, :selenium Spec::Example::ExampleGroupFactory.register(:selenium, self) end end end rescue LoadError # User doesn't have RSpec installed end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sauce-0.7.0 | lib/sauce/integrations.rb |