search for: fail_on_error

Displaying 5 results from an estimated 5 matches for "fail_on_error".

2008 Jul 09
2
Can I get RSpec NOT to abort rake on failing specs?
...branching and merging, so we really want to run all of the tests and specs to see all failures. We just realized that Rspec is aborting rake when a spec fails or errors in an individual rake task. I''ve been trying to fix this to no avail. I notice that SpecTask has an attribute accessor fail_on_error which looks like it SHOULD prevent terminating rake if it''s set to false. So I tried that and it doesn''t seem to work. Here''s our projects lib/tasks/spec.rake, any ideas? def spec_tasks %w{spec:controllers spec:models spec:helpers spec:views spec:lib} + spec_subdirs...
2007 Nov 26
0
Setting fail_on_error
For the default setup of RSpec is there a way to set the fail_on_error instance variable to false from outside of spectask.rb? I am not familiar enough with either ruby or rails to figure this out from the information provided. I realize that there is a fail_on_error= method but I do not know what to call the receiver. I would like to do this globally without having...
2007 Jan 05
6
RSpec 0.7.5 with Rails and rcov
I seem to be missing something because I am at a loss on how to get rcov, RSpec, and Rails working together. Would someone mind dropping some hints?
2007 Sep 04
7
Rake tasks getting in the way of edge (uses gem instead)
So I''d been running gem releases of rspec for the past several months, and I installed edge rspec so that I can use Story Runner. I''m running into a problem because I''ve got a couple rake tasks that reference "spec/rake/raketask". If I try to run "rake spec" then it pulls in the gem version instead of the plugin version. rake blows up saying that
2007 Nov 25
15
Possible Problem with RSpec and
Sorry to be such a pest but I am trying to learn Ruby, Rails and RSpec all at one go and it is a bit overwhelming. I have previously completed the depot tutorial in the Agile Web Dev with rails book and now I am trying do do it again using RSpec. What I would like to know now is why I am getting a rake failure error at the end of every spec:models run. Is this the expected behaviour when a test