Guest User

Untitled

a guest
Feb 21st, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. # spec/controllers/cds_controller_spec.rb
  2. describe CdsController do
  3. describe "index" do
  4. it "should look up all CDs in the database" do
  5. Cd.should_receive(:all).and_return([:some_cds])
  6. get :index
  7. assigns[:cds].should == [:some_cds]
  8. end
  9. end
  10. end
Add Comment
Please, Sign In to add comment