Guest User

Untitled

a guest
Jul 17th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. describe PublicController do
  2. describe "when searching for games" do
  3. let(:game) { Factory(:game) }
  4. before(:each) { post :index, :search => {:name_like => game.name.downcase } }
  5. it "returns the expected game(s)" do
  6. controller.results.should == [game]
  7. end
  8. end
  9. end
Add Comment
Please, Sign In to add comment