[rspec-users] RCov results seem to include the spec files
Scott Taylor
mailing_lists at railsnewbie.com
Mon Apr 9 03:34:18 EDT 2007
oops. wrong spec included. it should be:
it "should render index" do
controller.should_render(:index)
do_get
end
On Apr 9, 2007, at 3:29 AM, Scott Taylor wrote:
>
> 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
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
More information about the rspec-users
mailing list