Sha256: 79154282b0178b65af205a55854991ec9b4fd64a74984389be08042d7f383c85
Contents?: true
Size: 903 Bytes
Versions: 2
Compression:
Stored size: 903 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 description = [self.class.description, self.description].join(" ") config.browsers.each do |os, browser, version| @selenium = Sauce::Selenium.new({:os => os, :browser => browser, :browser_version => version, :job_name => "#{description}"}) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sauce-0.7.2 | lib/sauce/integrations.rb |
sauce-0.7.1 | lib/sauce/integrations.rb |