* Attempt number 1 * Fix rack_attack specs * Fix users_searches_users spec * Fix display_users_search_spec * Fix comment typo * Remove search:destroy task from cypress * Remove port 9300 from gitpod * Stub response in attack_spec
10 lines
295 B
Ruby
10 lines
295 B
Ruby
require "rails_helper"
|
|
|
|
RSpec.describe Search::UserSerializer do
|
|
let(:user) { create(:user) }
|
|
|
|
it "serializes a user" do
|
|
data_hash = described_class.new(user).serializable_hash.dig(:data, :attributes)
|
|
expect(data_hash.keys).to include(:id, :name, :path, :username, :roles)
|
|
end
|
|
end
|