[rspec-devel] [ rspec-Bugs-7344 ] Failing spec in HTML formatter

noreply at rubyforge.org noreply at rubyforge.org
Wed Feb 7 06:40:26 EST 2007


Bugs item #7344, was opened at 2006-12-18 18:33
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=7344&group_id=797

Category: runner module
Group: None
Status: Open
Resolution: None
Priority: 2
Submitted By: Bob Cotton (bcotton)
Assigned to: Nobody (None)
Summary: Failing spec in HTML formatter

Initial Comment:
This is revision 1322
ruby -v
ruby 1.8.5 (2006-08-25) [powerpc-darwin8.8.0]  
(build with all gcc optimizations off, ruby crashes on gem installs otherwise) 


1)
'HtmlFormatter should produce HTML identical to the one we designed manually' FAILED
[...HTML DELETED...]
Diff:

@@ -119,9 +119,7 @@
         <div class="message"><pre>Mock 'poke me' expected :poke with (any args) once, but received it 0 times</pre></div>
         <div class="backtrace"><pre>./failing_examples/mocking_example.rb:13:
 ./spec/spec/runner/formatter/html_formatter_spec.rb:16:
-./spec/spec/runner/formatter/html_formatter_spec.rb:12:in `chdir'
 ./spec/spec/runner/formatter/html_formatter_spec.rb:12:
-./spec/spec/runner/formatter/html_formatter_spec.rb:11:in `each'
 ./spec/spec/runner/formatter/html_formatter_spec.rb:11:</pre></div>
       </div>
     </dd>

@@ -135,9 +133,7 @@
         <div class="backtrace"><pre>(eval):3:in `three'
 ./failing_examples/mocking_example.rb:22:
 ./spec/spec/runner/formatter/html_formatter_spec.rb:16:
-./spec/spec/runner/formatter/html_formatter_spec.rb:12:in `chdir'
 ./spec/spec/runner/formatter/html_formatter_spec.rb:12:
-./spec/spec/runner/formatter/html_formatter_spec.rb:11:in `each'
 ./spec/spec/runner/formatter/html_formatter_spec.rb:11:</pre></div>
       </div>
     </dd>

@@ -150,9 +146,7 @@
         <div class="message"><pre>Mock 'don't talk to me' expected :any_message_at_all with (any args) 0 times, but received it once</pre></div>
         <div class="backtrace"><pre>./failing_examples/mocking_example.rb:28:
 ./spec/spec/runner/formatter/html_formatter_spec.rb:16:
-./spec/spec/runner/formatter/html_formatter_spec.rb:12:in `chdir'
 ./spec/spec/runner/formatter/html_formatter_spec.rb:12:
-./spec/spec/runner/formatter/html_formatter_spec.rb:11:in `each'
 ./spec/spec/runner/formatter/html_formatter_spec.rb:11:</pre></div>
       </div>
     </dd>

@@ -177,9 +171,7 @@
 </pre></div>
         <div class="backtrace"><pre>./failing_examples/diffing_spec.rb:13:
 ./spec/spec/runner/formatter/html_formatter_spec.rb:16:
-./spec/spec/runner/formatter/html_formatter_spec.rb:12:in `chdir'
 ./spec/spec/runner/formatter/html_formatter_spec.rb:12:
-./spec/spec/runner/formatter/html_formatter_spec.rb:11:in `each'
 ./spec/spec/runner/formatter/html_formatter_spec.rb:11:</pre></div>
       </div>
     </dd>

@@ -208,9 +200,7 @@
 </pre></div>
         <div class="backtrace"><pre>./failing_examples/diffing_spec.rb:34:
 ./spec/spec/runner/formatter/html_formatter_spec.rb:16:
-./spec/spec/runner/formatter/html_formatter_spec.rb:12:in `chdir'
 ./spec/spec/runner/formatter/html_formatter_spec.rb:12:
-./spec/spec/runner/formatter/html_formatter_spec.rb:11:in `each'
 ./spec/spec/runner/formatter/html_formatter_spec.rb:11:</pre></div>
       </div>
     </dd>

/Users/bcotton/projects/rspec/lib/spec/expectations.rb:20:in `fail_with'
/Users/bcotton/projects/rspec/lib/spec/expectations/should/base.rb:35:in `fail_with_message'
/Users/bcotton/projects/rspec/lib/spec/expectations/should/should.rb:49:in `__delegate_method_missing_to_target'
/Users/bcotton/projects/rspec/lib/spec/expectations/should/base.rb:15:in `=='
./spec/spec/runner/formatter/html_formatter_spec.rb:31:
./spec/spec/runner/formatter/html_formatter_spec.rb:12:in `chdir'
./spec/spec/runner/formatter/html_formatter_spec.rb:12:
./spec/spec/runner/formatter/html_formatter_spec.rb:11:in `each'
./spec/spec/runner/formatter/html_formatter_spec.rb:11:
/Users/bcotton/projects/rspec/lib/spec/runner/specification.rb:55:in `instance_eval'
/Users/bcotton/projects/rspec/lib/spec/runner/specification.rb:55:in `execute_spec'
/Users/bcotton/projects/rspec/lib/spec/runner/specification.rb:30:in `run'
/Users/bcotton/projects/rspec/lib/spec/runner/context.rb:57:in `run'
/Users/bcotton/projects/rspec/lib/spec/runner/context.rb:54:in `each'
/Users/bcotton/projects/rspec/lib/spec/runner/context.rb:54:in `run'
/Users/bcotton/projects/rspec/lib/spec/runner/context_runner.rb:23:in `run'
/Users/bcotton/projects/rspec/lib/spec/runner/context_runner.rb:22:in `each'
/Users/bcotton/projects/rspec/lib/spec/runner/context_runner.rb:22:in `run'
/Users/bcotton/projects/rspec/lib/spec/runner/command_line.rb:26:in `run'
/Users/bcotton/projects/rspec/bin/spec:4:
/usr/local/lib/ruby/gems/1.8/gems/rcov-0.7.0.1/bin/rcov:493:in `load'
/usr/local/lib/ruby/gems/1.8/gems/rcov-0.7.0.1/bin/rcov:493:
/usr/local/bin/rcov:18:in `load'
/usr/local/bin/rcov:18:

Finished in 5.943487 seconds

497 specifications, 1 failure


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

>Comment By: David Chelimsky (dchelimsky)
Date: 2007-02-07 11:40

Message:
We need a solution that supports 1.8.4 and 1.8.5.

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

Comment By: Aslak Hellesøy (aslak_hellesoy)
Date: 2006-12-18 18:46

Message:
I cannot reproduce this on Ruby 1.8.4. Looks like Ruby 1.8.5 (which I don't have yet) is adding more backtrace info. You can just ignore this.

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

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


More information about the rspec-devel mailing list