debian-mirror-gitlab/spec/models/members/member_role_spec.rb

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

18 lines
416 B
Ruby
Raw Normal View History

2022-08-27 11:52:29 +05:30
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe MemberRole do
describe 'associations' do
it { is_expected.to belong_to(:namespace) }
it { is_expected.to have_many(:members) }
end
describe 'validation' do
subject { described_class.new }
it { is_expected.to validate_presence_of(:namespace_id) }
it { is_expected.to validate_presence_of(:base_access_level) }
end
end