diff options
author | Stan Hu <stanhu@gmail.com> | 2019-08-09 00:33:42 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-08-09 00:33:42 -0700 |
commit | d39871d080ffbba35f4e58ed6c13c684e01be773 (patch) | |
tree | b70047104b288e44713e98ac688ef7643a0df8e2 /spec | |
parent | 60a1e843faacb570b3480e12cf67424d79840ebb (diff) | |
download | gitlab-ce-d39871d080ffbba35f4e58ed6c13c684e01be773.tar.gz |
Rename search_invited to search_invite_email
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/member_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/models/member_spec.rb b/spec/models/member_spec.rb index 99b268b07e8..25c39a1062c 100644 --- a/spec/models/member_spec.rb +++ b/spec/models/member_spec.rb @@ -172,14 +172,16 @@ describe Member do it { expect(described_class.non_request).to include @accepted_request_member } end - describe '.search_invited' do + describe '.search_invite_email' do it 'returns only the matching e-mail' do create(:group_member, :invited) - invited = described_class.search_invited(@invited_member.invite_email) + invited = described_class.search_invite_email(@invited_member.invite_email) expect(invited.count).to eq(1) expect(invited.first).to eq(@invited_member) + + expect(described_class.search_invite_email('bad-email@example.com').count).to eq(0) end end |