rearranges specs
This commit is contained in:
@@ -432,6 +432,17 @@ describe Proposal do
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
context "tags" do
|
||||||
|
|
||||||
|
it "searches by tags" do
|
||||||
|
proposal = create(:proposal, tag_list: 'Latina')
|
||||||
|
|
||||||
|
results = Proposal.search('Latina')
|
||||||
|
expect(results.first).to eq(proposal)
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
context "order" do
|
context "order" do
|
||||||
|
|
||||||
it "orders by weight" do
|
it "orders by weight" do
|
||||||
@@ -475,17 +486,6 @@ describe Proposal do
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
context "tags" do
|
|
||||||
|
|
||||||
it "searches by tags" do
|
|
||||||
proposal = create(:proposal, tag_list: 'Latina')
|
|
||||||
|
|
||||||
results = Proposal.search('Latina')
|
|
||||||
expect(results.first).to eq(proposal)
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
context "no results" do
|
context "no results" do
|
||||||
|
|
||||||
it "no words match" do
|
it "no words match" do
|
||||||
|
|||||||
Reference in New Issue
Block a user