Add search method to legislation processes

This way we'll be able to search processes in the SDG Management
section.
This commit is contained in:
Javi Martín
2020-12-16 14:36:23 +01:00
parent 852014e478
commit 948a8b2904
6 changed files with 68 additions and 2 deletions

View File

@@ -50,4 +50,15 @@ describe "rake db:calculate_tsv" do
expect(poll.reload.tsv).not_to be nil
end
it "calculates the tsvector for legislation processes" do
process = create(:legislation_process)
process.update_column(:tsv, nil)
expect(process.reload.tsv).to be nil
run_rake_task
expect(process.reload.tsv).not_to be nil
end
end