I am currently in the study of rubies on rails and in the rspek test environment can anyone tell me what rspec is prescribed in this test
describe "GET index" do it "assigns all mymodel as @mymodel" do mymodel = Factory(:mymodel) get :index assigns(:mymodels).should eq([mymodel]) end end
source share