[rspec-devel] [ rspec-Bugs-13969 ] Spec Failures on Trunk w/ Autotest

noreply at rubyforge.org noreply at rubyforge.org
Sun Sep 23 21:57:35 EDT 2007


Bugs item #13969, was opened at 2007-09-15 20:49
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=13969&group_id=797

Category: Autotest
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 3
Submitted By: Scott Taylor (smtlaissezfaire)
Assigned to: Nobody (None)
Summary: Spec Failures on Trunk w/ Autotest

Initial Comment:
Spec Failures are occurring when using autotest, but not when using the rake task:  (This is occuring in trunk/rspec, at revision 2564):

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

escher: autotest
loading autotest/rspec
/sw/bin/ruby1.8 -S bin/spec  spec/spec/dsl/composite_proc_builder_spec.rb spec/spec/translator_spec.rb spec/spec/runner/option_parser_spec.rb spec/spec/dsl/predicate_matcher_spec.rb spec/spec/runner/heckler_spec.rb spec/spec/mocks/partial_mock_using_mocks_directly_spec.rb spec/spec/matchers/matcher_methods_spec.rb spec/spec/story/rspec_adapter.rb spec/spec/mocks/record_messages_spec.rb spec/spec/runner/formatter/failing_behaviours_formatter_spec.rb spec/spec/runner/command_line_spec.rb spec/spec/dsl/configuration_spec.rb spec/spec/runner/extensions/bug_report_10577_spec.rb spec/spec/matchers/operator_matcher_spec.rb spec/spec/matchers/be_spec.rb spec/spec/matchers/be_close_spec.rb spec/spec/runner/test_unit_and_rspec_spec.rb spec/spec/runner/formatter/progress_bar_formatter_spec.rb spec/spec/mocks/multiple_return_value_spec.rb spec/spec/runner/formatter/snippet_extractor_spec.rb spec/spec/package/bin_spec_spec.rb spec/spec/runner/reporter_spec.rb spec/spec/runner_spec.rb spec/spec/mocks/stub_spec.rb spec/spec/matchers/description_generation_spec.rb spec/spec/runner/formatter/html_formatter_spec.rb spec/spec/expectations/fail_with_spec.rb spec/spec/matchers/equal_spec.rb spec/spec/mocks/bug_report_7805_spec.rb spec/spec/runner/spec_parser_spec.rb spec/spec/runner/behaviour_runner_spec.rb spec/autotest/discover_spec.rb spec/spec/story/simple_step_spec.rb spec/spec/runner/quiet_backtrace_tweaker_spec.rb spec/spec/story/runner/scenario_runner_spec.rb spec/spec/runner/formatter/progress_bar_formatter_failure_dump_spec.rb spec/spec/runner/heckle_runner_spec.rb spec/spec/mocks/failing_mock_argument_constraints_spec.rb spec/spec/matchers/satisfy_spec.rb spec/spec/dsl/example_instance_spec.rb spec/spec/story/world_spec.rb spec/spec/story/story_spec.rb spec/spec/mocks/at_most_spec.rb spec/spec/mocks/bug_report_11545_spec.rb spec/spec/mocks/mock_ordering_spec.rb spec/spec/dsl/example_matcher_spec.rb spec/spec/story/given_scenario_spec.rb spec/spec/dsl/example_factory_spec.rb spec/spec/runner/formatter/specdoc_formatter_dry_run_spec.rb spec/spec/mocks/bug_report_10260_spec.rb spec/spec/mocks/precise_counts_spec.rb spec/spec/mocks/at_least_spec.rb spec/spec/story/runner_spec.rb spec/spec/runner/testrunnermediator_spec.rb spec/spec/mocks/bug_report_8302_spec.rb spec/spec/dsl/shared_behaviour_spec.rb spec/spec/mocks/passing_mock_argument_constraints_spec.rb spec/spec/runner/formatter/rdoc_formatter_dry_run_spec.rb spec/spec/story/runner/scenario_collector_spec.rb spec/spec/mocks/argument_expectation_spec.rb spec/spec/runner/options_spec.rb spec/spec/matchers/mock_constraint_matchers_spec.rb spec/spec/mocks/any_number_of_times_spec.rb spec/spec/matchers/has_spec.rb spec/spec/runner/object_ext_spec.rb spec/spec/mocks/options_hash_spec.rb spec/spec/dsl/example_definition_class_spec.rb spec/spec/matchers/respond_to_spec.rb spec/spec/mocks/mock_spec.rb spec/spec/mocks/bug_report_7611_spec.rb spec/spec/mocks/once_counts_spec.rb spec/spec/story/runner/story_runner_spec.rb spec/spec/runner/formatter/progress_bar_formatter_dry_run_spec.rb spec/spec/runner/formatter/specdoc_formatter_spec.rb spec/spec/matchers/handler_spec.rb spec/spec/story/step_mother_spec.rb spec/spec/runner/noisy_backtrace_tweaker_spec.rb spec/spec/matchers/eql_spec.rb spec/spec/matchers/include_spec.rb spec/autotest_helper.rb spec/spec/dsl/example_should_raise_spec.rb spec/rspec_suite.rb spec/spec/dsl/behaviour_description_spec.rb spec/spec/runner/formatter/rdoc_formatter_spec.rb spec/spec/spec_classes.rb spec/autotest/rspec_spec.rb spec/spec/story/reporter/plain_text_reporter_spec.rb spec/spec/story/story_helper.rb spec/spec/mocks/bug_report_8165_spec.rb spec/spec/story/documenter/plain_text_documenter_spec.rb spec/spec/matchers/change_spec.rb spec/spec/runner/execution_context_spec.rb spec/spec/mocks/twice_counts_spec.rb spec/spec/mocks/null_object_mock_spec.rb spec/spec/dsl/example_class_definition_spec.rb spec/spec/matchers/simple_matcher_spec.rb spec/spec/matchers/have_spec.rb spec/spec/matchers/raise_error_spec.rb spec/spec/mocks/mock_space_spec.rb spec/spec/runner/drb_command_line_spec.rb spec/spec/story/builders.rb spec/spec/dsl/example_suite_spec.rb spec/spec/runner/extensions/kernel_spec.rb spec/spec/dsl/example_spec.rb spec/spec/story/extensions_spec.rb spec/spec/dsl/example_definition_spec.rb spec/spec/expectations/differs/default_spec.rb spec/spec/runner/formatter/failing_examples_formatter_spec.rb spec/spec/story/scenario_spec.rb spec/spec/dsl/supports_pending_spec.rb spec/spec/matchers/throw_symbol_spec.rb spec/spec/matchers/match_spec.rb spec/spec/matchers/exist_spec.rb spec/spec/expectations/extensions/object_spec.rb spec/spec/mocks/partial_mock_spec.rb
..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................P.....................................................................................................................................................................................................................................................................................................................................................P.......PP..................................F..F..........P..............

1)
'should match(expected) should fail when target (String) matches expected (Regexp)' FAILED
expected Spec::Expectations::ExpectationNotMetError, got #<NoMethodError: undefined method `diff_as_object' for #<Custom::Differ:0x259c034>>
./spec/spec/matchers/match_spec.rb:9:

2)
'should_not match(expected) should fail when target (String) matches expected (Regexp)' FAILED
expected Spec::Expectations::ExpectationNotMetError, got #<NoMethodError: undefined method `diff_as_object' for #<Custom::Differ:0x259c034>>
./spec/spec/matchers/match_spec.rb:27:

Finished in 5.699199 seconds

1049 examples, 2 failures, 5 pending

Pending:
a Mock expectation should clear expectations after verify (this fails if you run the file normally, but passes if you comment out the example at 116 or run the file in reverse)
Example.suite should return an ExampleSuite with Examples (Not Yet Implemented)
Example.class_eval should understand module scoping (Example.new needs to create a class that is evaled)
Example.class_eval should allow class variables to be defined (class_eval cannot be used. Only the class definition can be used. This may not be possible.)
Object#should should raise error if it receives nil (refactor the should method to handle this)
^CInterrupt a second time to quit



^Cescher: rake spec
(in /Users/smt/src/ruby/rspec/trunk/rspec)
...............................................................................................................P.......PP..........................................................................P................................................................................................................................................................................................................................................................................................................................................................................................P...............................................................................................................................................................................................................................................................................................................................................................................................................................................

Finished in 9.799042 seconds

1012 examples, 0 failures, 5 pending

Pending:
Example.suite should return an ExampleSuite with Examples (Not Yet Implemented)
Example.class_eval should understand module scoping (Example.new needs to create a class that is evaled)
Example.class_eval should allow class variables to be defined (class_eval cannot be used. Only the class definition can be used. This may not be possible.)
Object#should should raise error if it receives nil (refactor the should method to handle this)
a Mock expectation should clear expectations after verify (this fails if you run the file normally, but passes if you comment out the example at 116 or run the file in reverse)


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

Not sure if this has anything to do with Autotest or not.  My suspicion is that it's buggy (rspec, not autotest) code.  Let me know if I can do anything to help.



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

>Comment By: David Chelimsky (dchelimsky)
Date: 2007-09-24 01:57

Message:
Fixed in r2653

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

Comment By: Scott Taylor (smtlaissezfaire)
Date: 2007-09-15 20:57

Message:
Oops: Forgot to attach my info:

Ruby v. 186
Mac OS X.4.10 (Intel)
rspec's trunk
autotest, latest gem

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

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


More information about the rspec-devel mailing list