[rspec-users] Does rspec support something like Assumptions in JUnit 4.4?
matt at mattwynne.net
Mon Jun 1 16:56:07 EDT 2009
On 1 Jun 2009, at 20:52, Pat Maddox wrote:
> You can do
> it "should do something" do
> some_precondition.should be_met
> some_postcondition.should be_met
Also, more verbosely...
describe "when there is some precondition"
it "should do something"
Which, can often make your specs read nicely. I also offers an obvious
space to think of a few more examples to throw in there.
More information about the rspec-users