adds self.search to Debate

This commit is contained in:
Juanjo Bazán
2015-09-05 15:05:56 +02:00
parent 54eeff41b7
commit 771f44c22b
3 changed files with 33 additions and 2 deletions

View File

@@ -249,7 +249,7 @@ describe User do
expect(search.first).to eq(user1)
end
it "returns no results if no email provided" do
it "returns no results if no search term provided" do
expect(User.search(" ").size).to eq(0)
end
end