[rspec-users] RCov results seem to include the spec files

Scott Taylor mailing_lists at railsnewbie.com
Mon Apr 9 03:29:16 EDT 2007


I'm getting a ton of errors when using that...

Here is one of my specs:

describe "GET /users/1/terms" do

   controller_name :terms

   def do_get
     get :index, :user_id => 1
   end

   it "should be successful" do
     do_get
     response.should be_success
   end

...
end

and the response from rcov:

1)
NoMethodError in 'GET /users/1/terms should render index'
undefined method `should_render' for #<TermsController:0x39d7b20>
./spec/controllers/terms_controller_spec.rb:43:

Any ideas?

Scott



On Apr 9, 2007, at 1:37 AM, Pat Maddox wrote:

>
> require "rake"
> require "spec/rake/spectask"
>
> desc "Run all specs with RCov"
> Spec::Rake::SpecTask.new("spec:rcov") do |t|
>   t.spec_files = FileList["spec/**/*_spec.rb"]
>   t.rcov = true
> end



More information about the rspec-users mailing list