moves search by author name to full text searches

This commit is contained in:
rgarcia
2016-01-16 22:10:17 +01:00
parent 44769d96f4
commit 82f9a656ad
7 changed files with 24 additions and 69 deletions

View File

@@ -444,6 +444,13 @@ describe Debate do
expect(results).to eq([debate])
end
xit "searches by author name" do
author = create(:user, username: 'Danny Trejo')
debate = create(:debate, author: author)
results = Debate.search('Danny')
expect(results).to eq([debate])
end
end
context "stemming" do

View File

@@ -394,6 +394,13 @@ describe Proposal do
expect(results).to eq([proposal])
end
it "searches by author name" do
author = create(:user, username: 'Danny Trejo')
proposal = create(:proposal, author: author)
results = Proposal.search('Danny')
expect(results).to eq([proposal])
end
end
context "stemming" do