[rspec-devel] [ rspec-Bugs-15544 ] Interdependency among specs

noreply at rubyforge.org noreply at rubyforge.org
Sun Nov 11 03:08:33 EST 2007


Bugs item #15544, was opened at 2007-11-11 08:08
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=15544&group_id=797

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Scott Taylor (smtlaissezfaire)
Assigned to: Nobody (None)
Summary: Interdependency among specs

Initial Comment:

2 sets of interdependency among the specs in trunk/spec, @ revision 2848:

1. Two failures occur when running autotest (or with ruby bin/spec spec/spec/mocks/** in trunk/spec):

1)
Spec::Mocks::MockExpectationError in 'calling :should_receive with an options hash should report the file and line submitted with :expected_from'
Mock 'Spec::Runner::Reporter' expected :example_finished with (any args) once, but received it 0 times
./spec/spec/mocks/options_hash_spec.rb:21:

2)
Spec::Mocks::MockExpectationError in 'calling :should_receive with an options hash should use the message supplied with :message'
Mock 'Spec::Runner::Reporter' expected :example_finished with (any args) once, but received it 0 times
./spec/spec/mocks/options_hash_spec.rb:35:

I haven't really investigated this part of the framework - so I'll leave it up to you guys.



2. the second one can be reproduced by running the following (inside of trunk/spec):

escher: ruby bin/spec spec/spec/dsl/example_class_definition_spec.rb --reverse
F.....

1)
'Spec::DSL::ExampleClassDefinitionSpec should run' FAILED
expected true, got nil
./spec/spec/dsl/example_class_definition_spec.rb:44:

Finished in 0.00325 seconds

6 examples, 1 failure

But running them normally gives good results:

escher: ruby bin/spec spec/spec/dsl/example_class_definition_spec.rb   
......

Finished in 0.002986 seconds

6 examples, 0 failures


This second example is rather 'nitpicky' - disregard it if you don't think it's important.

Scott


BTW: I'm running on OS X.4, ruby 1.8.6 patchlevel-110, and trunk @rev 2848


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=15544&group_id=797


More information about the rspec-devel mailing list