Displaying 2 results from an estimated 2 matches for "some_spec".
Did you mean:
node_spec
2012 Feb 13
11
stale records with integration testing?
Hi,
I was writing an integration test for my user signup form (with
capybara), and found that my test was failing due to a validation error:
"email is already taken". I''m a bit confused because I thought when I
run "rspec spec/some_spec.rb", the test database would be wiped clear?
Is that not the case?
Patrick J. Collins
http://collinatorstudios.com
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 HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/...