lib/simulacrum.rb in simulacrum-0.0.2 vs lib/simulacrum.rb in simulacrum-0.0.3
- old
+ new
@@ -1,16 +1,35 @@
require 'ostruct'
-require_relative 'Simulacrum/methods'
-require_relative 'Simulacrum/matchers'
-require_relative 'Simulacrum/configuration'
+require 'capybara'
+require_relative './simulacrum/methods'
+require_relative './simulacrum/matchers'
+require_relative './simulacrum/configuration'
# Gem module
module Simulacrum
+ @current_browser = nil
+ @browsers = {}
@components = {}
@configuration = Simulacrum::Configuration.new
+ Capybara.configure do |config|
+ config.default_driver = :selenium
+ end
+
def self.components
@components
+ end
+
+ def self.browsers
+ @browsers
+ end
+
+ def self.current_browser
+ @current_browser
+ end
+
+ def self.current_browser=(browser)
+ @current_browser = browser
end
def self.configuration
@configuration
end