[rspec-users] Problems with expect_render

Matt Patterson matt-lists at reprocessed.org
Tue Sep 25 12:30:30 EDT 2007


On 25 Sep 2007, at 17:12, David Chelimsky wrote:

>> OS X, with Ruby 1.8.6
>
> Me too and I get 100% coverage.

I'm running the mysql.com MySQL 5.0.45 mac intel build, and the  
native mysql gem (2.7), if that helps

> Are you just getting a coverage problem, or is it something else? Can
> you post the output you're getting?

pasted below.

Also, when running rake examples_with_rcov in the rspec dir of my  
checkout I get the headline figure:
Name  | Total lines | Lines of code | Total coverage | Code coverage
TOTAL | 5548        | 3800          | 71.1%          | 59.7%

Do you want to zip up rspec/coverage and send that too?

Matt

----

[~/sandbox/rspec-1.0.8] matt$ rake pre_commit
(in /Users/matt/sandbox/rspec-1.0.8)
(in /Users/matt/sandbox/rspec-1.0.8/rspec)
** Invoke pre_commit (first_time)
** Execute pre_commit
** Invoke verify_rcov (first_time)
** Invoke spec (first_time)
** Invoke clobber_spec (first_time)
** Execute clobber_spec
** Execute spec
........................................................................ 
........................................................................ 
........................................................................ 
..............................................................The :any_a 
rgs constraint is deprecated. Use any_args() instead.
.The :string constraint is deprecated. Use an_instance_of(String)  
instead.
.The :anything constraint is deprecated. Use anything() instead.
.The :numeric constraint is deprecated. Use an_instance_of(Numeric)  
instead.
.The :numeric constraint is deprecated. Use an_instance_of(Numeric)  
instead.
.The :boolean constraint is deprecated. Use boolean() instead.
.The :boolean constraint is deprecated. Use boolean() instead.
..................................The :no_args constraint is  
deprecated. Use no_args() instead.
.The :no_args constraint is deprecated. Use no_args() instead.
.........................................................The :string  
constraint is deprecated. Use an_instance_of(String) instead.
.The :numeric constraint is deprecated. Use an_instance_of(Numeric)  
instead.
.The :boolean constraint is deprecated. Use boolean() instead.
........................................................................ 
........................................................................ 
........................................................................ 
........................................................................ 
........................................................................ 
........................................................................ 
........................................................................ 
................

Finished in 5.021135 seconds

898 examples, 0 failures
** Execute verify_rcov
Coverage: 98.9% (threshold: 100.0%)
rake aborted!
Coverage must be at least 100.0% but was 98.9%
./lib/spec/rake/verify_rcov.rb:47:in `define'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in  
`execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in  
`execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:in `invoke'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in  
`synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke'
/Users/matt/sandbox/rspec-1.0.8/pre_commit/lib/pre_commit/ 
pre_commit.rb:9:in `rake_invoke'
/Users/matt/sandbox/rspec-1.0.8/pre_commit/lib/pre_commit/core.rb: 
11:in `website'
/Users/matt/sandbox/rspec-1.0.8/pre_commit/lib/pre_commit/core.rb: 
3:in `pre_commit'
/Users/matt/sandbox/rspec-1.0.8/rspec/rakefile:175
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in  
`execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in  
`execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:in `invoke'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in  
`synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in  
`top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in  
`top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in  
`standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1733:in  
`top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1711:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in  
`standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1708:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7
/usr/local/bin/rake:16:in `load'
/usr/local/bin/rake:16
rake aborted!
RSpec Core pre_commit failed
/Users/matt/sandbox/rspec-1.0.8/rakefile:9



-- 
   Matt Patterson | Design & Code
   <matt at reprocessed org> | http://www.reprocessed.org/




More information about the rspec-users mailing list