* Add Search::Postgres::User * Add sorting params * Use a better algorithm to filter out suspended users * Add tsvector index on users.name * Add specs * Add UserRole spec * Update spec/services/search/postgres/user_spec.rb Co-authored-by: Michael Kohl <citizen428@dev.to> * Fix search with quotes in users's names Co-authored-by: Michael Kohl <citizen428@dev.to>
6 lines
151 B
Ruby
6 lines
151 B
Ruby
require "rails_helper"
|
|
|
|
RSpec.describe UserRole, type: :model do
|
|
it { is_expected.to belong_to(:user) }
|
|
it { is_expected.to belong_to(:role) }
|
|
end
|