Using Rspec with Factory Girl. Trying to check out what data is being assigned in my controller (and test against it). Every post I\'ve read says I should be able to get someth
If you are using the rspec > 2.99 you can use:
expect(assigns(:stickies)).not_to be_nil
You have to invoke the action first
describe StickiesController do describe "GET index" do it "should assign stickies" do get :index assigns(:stickies).should_not be_nil end end end