Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # spec/controllers/cds_controller_spec.rb
- describe CdsController do
- describe "index" do
- it "should look up all CDs in the database" do
- Cd.should_receive(:all).and_return([:some_cds])
- get :index
- assigns[:cds].should == [:some_cds]
- end
- end
- end
Add Comment
Please, Sign In to add comment