1
0
mirror of https://github.com/discourse/discourse.git synced 2025-03-05 18:59:22 +00:00
discourse/spec/models/group_request_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
261 B
Ruby
Raw Normal View History

# frozen_string_literal: true
RSpec.describe GroupRequest do
it { is_expected.to belong_to :user }
it { is_expected.to belong_to :group }
it do
is_expected.to validate_length_of(:reason).is_at_most(described_class::REASON_CHARACTER_LIMIT)
end
end