mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 07:40:12 +01:00
Removed superfluous 'tracks' directory at the root of the repository.
Testing commits to github.
This commit is contained in:
parent
6a42901514
commit
4cbf5a34d3
2269 changed files with 0 additions and 0 deletions
22
vendor/plugins/selenium-on-rails/lib/selenium_on_rails_config.rb
vendored
Normal file
22
vendor/plugins/selenium-on-rails/lib/selenium_on_rails_config.rb
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
require 'yaml'
|
||||
|
||||
class SeleniumOnRailsConfig
|
||||
@@defaults = {:environments => ['test']}
|
||||
def self.get var, default = nil
|
||||
value = configs[var.to_s]
|
||||
value ||= @@defaults[var]
|
||||
value ||= default
|
||||
value ||= yield if block_given?
|
||||
value
|
||||
end
|
||||
|
||||
private
|
||||
def self.configs
|
||||
unless defined? @@configs
|
||||
file = File.expand_path(File.dirname(__FILE__) + '/../config.yml')
|
||||
@@configs = File.exist?(file) ? YAML.load_file(file) : {}
|
||||
end
|
||||
@@configs
|
||||
end
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue