search for: eed10879

Displaying 1 result from an estimated 1 matches for "eed10879".

Did you mean: ed1079
2012 Sep 27
3
load global variable so I can access in spec files
In my spec_helper, I want to load yaml file to a variable, and then be able to use that in my tests. spec_helper.rb: RSpec.configure do |config| end config = YAML::Load(......) some_spec.rb describe ''blah'' do it "should be...." do MyClass.new( config[''test''] ) end end How can I do this? -------------- next part -------------- An