diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-29 06:07:32 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-29 06:07:32 +0300 |
commit | be8b477154c88aaf1ed2c4adea980945482350d2 (patch) | |
tree | cd6ee0dac409eea2c0c8b560cd379d5ae25c034c /spec/models/member_spec.rb | |
parent | 3d7e272e4378b00f08c0f85327c4162eaf6d42fb (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/member_spec.rb')
-rw-r--r-- | spec/models/member_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/models/member_spec.rb b/spec/models/member_spec.rb index 1727a9f89f3..65932b6fb25 100644 --- a/spec/models/member_spec.rb +++ b/spec/models/member_spec.rb @@ -30,6 +30,7 @@ RSpec.describe Member do context "when an invite email is provided" do let_it_be(:project) { create(:project) } + let(:member) { build(:project_member, source: project, invite_email: "user@example.com", user: nil) } it "doesn't require a user" do @@ -98,6 +99,7 @@ RSpec.describe Member do context 'project bots' do let_it_be(:project_bot) { create(:user, :project_bot) } + let(:new_member) { build(:project_member, user_id: project_bot.id) } context 'not a member of any group or project' do |