docbrown/spec/models/hair_trigger_spec.rb
rhymes 4bc56b8ac0
Search results: prioritize articles titles (#13918)
* Add HairTrigger spec

* Add weights to columns tsvectors

* Add correct sorting for search results

* Remove Timecop.travel

* Changed order of columns in trigger based on weights
2021-06-09 14:28:19 +02:00

11 lines
355 B
Ruby

require "rails_helper"
# HairTrigger suggests adding this test to make sure the schema and triggers are aligned
# See https://github.com/jenseng/hair_trigger#testing
RSpec.describe HairTrigger, type: :model do
describe ".migrations_current?" do
it "is always true" do
expect(described_class.migrations_current?).to be(true)
end
end
end