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?
Cheers,
Lawrence
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?
Cheers,
Lawrence
On Mon, May 18, 2009 at 7:04 AM, lawrence.pit [email protected]
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
On Mon, May 18, 2009 at 6:46 AM, David C.
[email protected]wrote:
…
-l, --line LINE_NUMBER Execute example group or example at given
line.
Also, ‘spec foo_spec.rb:3’ which is the same way Cucumber does it.
///ark
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs