[rspec-users] Continuing a "specify" block after failure
leenoori
leenoori at quepica.com
Tue Feb 27 07:37:03 EST 2007
El 26/2/2007, a las 21:22, David Chelimsky escribió:
> IMO, since statements about each file could fail independently, then
> each file wants its own specify block. So I would do it this way, with
> the addition of something to separate out the spec names. For example
> (possibly to verbose, but you get the idea):
>
> context 'transforming files' do
> files.each do |file|
> specify "actual output should match expected output (#
> {file.inspect})" do
> file.input.process.should == file.expected
> end
> end
> end
>
> Cheers,
> David
Many thanks for your advice, David! I will go ahead and do it this way.
Cheers!
More information about the rspec-users
mailing list