module KnowsAboutTheEnvironment
Public Class Methods
extended(base)
click to toggle source
# File lib/cucumber/blinkbox/environment.rb, line 21 def self.extended(base) base.instance_eval do path = TEST_CONFIG["environments.yml"] || "config/environments.yml" raise "The environments file does not exist at #{path}" unless File.exist?(path) env = YAML.load_file(path)[TEST_CONFIG["server"].downcase] raise "Environment '#{TEST_CONFIG["server"]}' is not defined in environments.yml" if env.nil? @test_env = EnvStruct.new(env) end end
Public Instance Methods
test_env()
click to toggle source
# File lib/cucumber/blinkbox/environment.rb, line 31 def test_env @test_env end