mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 14:25:24 +08:00
11 lines
261 B
Ruby
11 lines
261 B
Ruby
|
# 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
|