Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe PublicController do
- describe "when searching for games" do
- let(:game) { Factory(:game) }
- before(:each) { post :index, :search => {:name_like => game.name.downcase } }
- it "returns the expected game(s)" do
- controller.results.should == [game]
- end
- end
- end
Add Comment
Please, Sign In to add comment