[rspec-users] nested steps

David Chelimsky dchelimsky at gmail.com
Tue Jan 12 17:46:36 EST 2010


On Tue, Jan 12, 2010 at 4:40 PM, rogerdpack <rogerpack2005 at gmail.com> wrote:

> Question.
> Currently rspec appears to allow for a two-step test system, like
>
> context "abc"
>  it 'should do y' do
>  end
> end
>
> It might be convenient to have an arbitrary number of nests, like
>
> context "abc"
>  it 'should do y' do
>
>    it 'should also be able to do x'
>    end
>
>  end
> end
>
> Thoughts?
> -r
>

Why would that be more convenient? Can you give a more concrete example
(with some sample code)?

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100112/2f0cdeb5/attachment.html>


More information about the rspec-users mailing list