I have a test specification in which the class is describes and inside which there are different contexts , each with different it blocks.
Is there a way to temporarily disable context ?
I tried to add the pending "temporarily disabled" call to the very top inside the context that I want to disable, and I saw something in anticipation when I ran the spec, but then it just continued to run the rest of the tests.
This is what I kind of like:
describe Something context "some tests" do it "should blah" do true end end context "some other tests" do pending "temporarily disabled" it "should do something destructive" do blah end end end
but, as I said, he just continued the tests under a waiting call.
A search led me to this mailing list list in which the creator (?) Rspec says this is possible in rspec 2, m works. I think this worked, but it did not have the desired effect of disabling all of the following tests, which I think of when I see the pending call.
Is there an alternative, or am I doing it wrong?
ruby rspec bdd
Jorge Israel Peรฑa May 7 '11 at 1:46 a.m.
source share