Displaying 2 results from an estimated 2 matches for "add_example_group".
2008 Oct 18
4
Problems when programmatically defining examples
...ups =
test_expectation.example_groups_for(system_state)
@output = StringIO.new
options = Spec::Runner::OptionParser.parse(["--format",
"RAutotest::Runner::Formatter"], @output, @output)
example_groups.each {|example_group|
options.add_example_group(example_group) }
Spec::Runner::CommandLine.run(options)
Building the example groups:
examples =
Class.new(Spec::Example::ExampleGroup).describe("Statistics")
@expectations.map do |expectation|
examples.it e...
2010 Sep 22
0
rspec-rails 1.3.2 tests get loaded, but not executed
...c-rails 1.3.2 with rails 2.3.9 on ruby 1.8.7
Unfortunately my tests don''t execute at all after i updated these gems
although i followed the update insturctions. After some debugging i
found that the describes and examples get created, but they never get
registered with ExampleGroupFactory.add_example_group and therefore
not executed when runner.run is called
This seems to be a rspec-rails issue only as i could execute the tests
for rspec 1.3.0
the gems i use:
*** LOCAL GEMS ***
rails (2.3.9)
rake (0.8.7)
rspec (1.3.0)
rspec-rails (1.3.2)
ruby-debug-base (0.10.3)
ruby-debug-ide (0.4.7)
test-unit (2....