If you are going to write a controller specification, then yes, be sure to check that instance variables are assigned. Most of the "trick" can come from dependencies on other models / libraries, so disable these method calls:
# air code Staff.stub(:find_staff_for_business_all_inclusive) {array_of_staff} controller.stub(:days_of_week) {['Monday','Tuesday',....etc...]} DefaultsConfig.stub(:first_day_of_week) {"Monday"} Service.stub(:services_for_business).with(some_value_for_the_current_business_id).\ and_return(some_relevant_value) StaffVacation.stub(:new) {something_meaningful} controller.stub_chain(:current_user_plan,:has_hit_staff_limit?) {false} get :index assigns(:days_of_week).should == ['Monday','Tuesday',....etc...]
zetetic
source share