module SpecTest::Platforms
Public Class Methods
associate(key, driver)
click to toggle source
# File lib/spectest/platforms.rb, line 9 def self.associate(key, driver) @@drivers[key] = driver end
list()
click to toggle source
# File lib/spectest/platforms.rb, line 5 def self.list @@drivers end
Public Instance Methods
platform_for(browser, drivers)
click to toggle source
# File lib/spectest/platforms.rb, line 13 def platform_for(browser, drivers) drivers.each_value { |driver| return driver.create_platform_object_for browser if driver.works_for? browser } raise "Unable to associate a platform using the provided browser." end