[rspec-users] running 1 example

David Chelimsky dchelimsky at gmail.com
Mon May 18 09:46:10 EDT 2009


On Mon, May 18, 2009 at 7:04 AM, lawrence.pit <lawrence.pit at gmail.com> wrote:
> Hi,
>
> Suppose you have a file with dozens of examples within several
> describe/context blocks, and you wanted to focus on just one example.
> Is there an easy way to run just that one example instead of all the
> examples in the file?

$ spec --help
...
-l, --line LINE_NUMBER           Execute example group or example at given line.
...

HTH,
David

>
>
>
> Cheers,
> Lawrence
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list