Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
69181697
Commit
69181697
authored
Jan 11, 2021
by
Małgorzata Ksionek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix notify spec
parent
aaceb972
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
ee/spec/mailers/notify_spec.rb
ee/spec/mailers/notify_spec.rb
+12
-5
No files found.
ee/spec/mailers/notify_spec.rb
View file @
69181697
...
...
@@ -371,15 +371,20 @@ RSpec.describe Notify do
end
describe
'new user was created via saml'
do
let
(
:group_member
)
{
create
(
:group_member
,
user:
user
)
}
let
(
:group_member
)
{
create
(
:group_member
)
}
let
(
:group
)
{
group_member
.
source
}
let
(
:recipient
)
{
user
}
let
(
:recipient
)
{
group_member
.
user
}
before
do
recipient
.
update!
(
confirmed_at:
nil
)
recipient
.
update!
(
confirmation_token:
'random_string'
)
end
subject
{
described_class
.
member_access_granted_email_with_confirmation
(
'group'
,
group_member
.
id
)
}
it_behaves_like
'an email sent from GitLab'
it_behaves_like
'it should not have Gmail Actions links'
it_behaves_like
"a user cannot unsubscribe through footer link"
it_behaves_like
'a user cannot unsubscribe through footer link'
it_behaves_like
'appearance header and footer enabled'
it_behaves_like
'appearance header and footer not enabled'
...
...
@@ -391,8 +396,10 @@ RSpec.describe Notify do
is_expected
.
to
have_subject
"Welcome to GitLab"
is_expected
.
to
have_body_text
group
.
name
is_expected
.
to
have_body_text
group
.
web_url
is_expected
.
to
have_body_text
user
.
username
is_expected
.
to
have_body_text
user
.
email
is_expected
.
to
have_body_text
recipient
.
username
is_expected
.
to
have_body_text
recipient
.
email
is_expected
.
to
have_body_text
'Confirm your account'
is_expected
.
to
have_body_text
recipient
.
confirmation_token
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment