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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
3579ed01
Commit
3579ed01
authored
Jun 03, 2018
by
Takuya Noguchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Add a new have_html_escaped_body_text that match an HTML-escaped text"
This reverts commit
517598ba
.
parent
e87031e4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
14 deletions
+9
-14
spec/mailers/notify_spec.rb
spec/mailers/notify_spec.rb
+9
-9
spec/support/matchers/email_matchers.rb
spec/support/matchers/email_matchers.rb
+0
-5
No files found.
spec/mailers/notify_spec.rb
View file @
3579ed01
...
...
@@ -660,7 +660,7 @@ describe Notify do
is_expected
.
to
have_html_escaped_body_text
project
.
full_name
is_expected
.
to
have_body_text
project
.
web_url
is_expected
.
to
have_body_text
project_member
.
invite_email
is_expected
.
to
have_
html_escaped_
body_text
invited_user
.
name
is_expected
.
to
have_body_text
invited_user
.
name
end
end
...
...
@@ -932,7 +932,7 @@ describe Notify do
end
it
'contains the message from the note'
do
is_expected
.
to
have_
html_escaped_
body_text
note
.
note
is_expected
.
to
have_body_text
note
.
note
end
it
'contains an introduction'
do
...
...
@@ -991,7 +991,7 @@ describe Notify do
expect
(
to_emails
).
to
eq
([
recipient
.
notification_email
])
is_expected
.
to
have_subject
"Request to join the
#{
group
.
name
}
group"
is_expected
.
to
have_
html_escaped_
body_text
group
.
name
is_expected
.
to
have_body_text
group
.
name
is_expected
.
to
have_body_text
group_group_members_url
(
group
)
is_expected
.
to
have_body_text
group_member
.
human_access
end
...
...
@@ -1010,7 +1010,7 @@ describe Notify do
it
'contains all the useful information'
do
is_expected
.
to
have_subject
"Access to the
#{
group
.
name
}
group was denied"
is_expected
.
to
have_
html_escaped_
body_text
group
.
name
is_expected
.
to
have_body_text
group
.
name
is_expected
.
to
have_body_text
group
.
web_url
end
end
...
...
@@ -1026,7 +1026,7 @@ describe Notify do
it
'contains all the useful information'
do
is_expected
.
to
have_subject
"Access to the
#{
group
.
name
}
group was granted"
is_expected
.
to
have_
html_escaped_
body_text
group
.
name
is_expected
.
to
have_body_text
group
.
name
is_expected
.
to
have_body_text
group
.
web_url
is_expected
.
to
have_body_text
group_member
.
human_access
end
...
...
@@ -1056,7 +1056,7 @@ describe Notify do
it
'contains all the useful information'
do
is_expected
.
to
have_subject
"Invitation to join the
#{
group
.
name
}
group"
is_expected
.
to
have_
html_escaped_
body_text
group
.
name
is_expected
.
to
have_body_text
group
.
name
is_expected
.
to
have_body_text
group
.
web_url
is_expected
.
to
have_body_text
group_member
.
human_access
is_expected
.
to
have_body_text
group_member
.
invite_token
...
...
@@ -1080,10 +1080,10 @@ describe Notify do
it
'contains all the useful information'
do
is_expected
.
to
have_subject
'Invitation accepted'
is_expected
.
to
have_
html_escaped_
body_text
group
.
name
is_expected
.
to
have_body_text
group
.
name
is_expected
.
to
have_body_text
group
.
web_url
is_expected
.
to
have_body_text
group_member
.
invite_email
is_expected
.
to
have_
html_escaped_
body_text
invited_user
.
name
is_expected
.
to
have_body_text
invited_user
.
name
end
end
...
...
@@ -1103,7 +1103,7 @@ describe Notify do
it
'contains all the useful information'
do
is_expected
.
to
have_subject
'Invitation declined'
is_expected
.
to
have_
html_escaped_
body_text
group
.
name
is_expected
.
to
have_body_text
group
.
name
is_expected
.
to
have_body_text
group
.
web_url
is_expected
.
to
have_body_text
group_member
.
invite_email
end
...
...
spec/support/matchers/email_matchers.rb
deleted
100644 → 0
View file @
e87031e4
RSpec
::
Matchers
.
define
:have_html_escaped_body_text
do
|
expected
|
match
do
|
actual
|
expect
(
actual
).
to
have_body_text
(
ERB
::
Util
.
html_escape
(
expected
))
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