[rspec-users] Problems when programmatically defining examples
benilov at gmail.com
Sat Oct 18 12:13:03 EDT 2008
I am trying to code an application that is based on Rspec; I am
programmatically building examples, and launching the runner with a custom
formatter. Here are the code snippets from my app:
Launching the runner:
@output = StringIO.new
options = Spec::Runner::OptionParser.parse(["--format",
"RAutotest::Runner::Formatter"], @output, @output)
Building the example groups:
@expectations.map do |expectation|
examples.it examples.description do
This is working fine, except for one problem. When I am writing examples for
my app (also using rspec), the examples that are generated within my
application (the inner examples, so to say) are being added to the
application's examples (the outer examples).
This means that if inner expected failures are causing my outer examples to
How is it possible for me to verify expected failures without causing my
examples to fail?
Thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users