Testing RSpec views: the index action; is my methodology flawed?

This is my organizations_controller_spec.rb:

require ‘spec_helper’

describe Superadmin::OrganizationsController do

describe “GET index” do

it “shows a list of all organizations” do

#pending “don’t know why this doesn’t work”

Organization.should_receive(:all)

end

end

end

This is my organizations_controller_spec.rb:

require 'spec_helper'

describe Superadmin::OrganizationsController do describe "GET index" do it "shows a list of all organizations" do #pending "don't know why this doesn't work" Organization.should_receive(:all)

You've got to actually invoke the action here:

get :index

HTH, David

Oh, of course… thank you. How silly of me.

Question: Do you recommend stubbing/mocking models? Or could I just specify the real model as I did here?