新建的项目测试 rspec,运行的时候提示,需要引入什么吗?
user_controller_spec.rb
describe "GET index" do it "assigns all users as @users" do user = User.create! valid_attributes get :index, {}, valid_session assigns(:users).should eq([user]) end end