Displaying 1 result from an estimated 1 matches for "dd257539".
Did you mean:
6257539
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