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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
57c0d9ec
Commit
57c0d9ec
authored
Sep 30, 2014
by
Robert Schilling
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7870 from mr-vinn/fix-notify-spec
Update expected value in notify_spec
parents
5b5912f9
97e2f8a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
spec/mailers/notify_spec.rb
spec/mailers/notify_spec.rb
+7
-2
No files found.
spec/mailers/notify_spec.rb
View file @
57c0d9ec
...
@@ -44,7 +44,9 @@ describe Notify do
...
@@ -44,7 +44,9 @@ describe Notify do
let
(
:example_site_path
)
{
root_path
}
let
(
:example_site_path
)
{
root_path
}
let
(
:new_user
)
{
create
(
:user
,
email:
'newguy@example.com'
,
created_by_id:
1
)
}
let
(
:new_user
)
{
create
(
:user
,
email:
'newguy@example.com'
,
created_by_id:
1
)
}
subject
{
Notify
.
new_user_email
(
new_user
.
id
,
new_user
.
password
,
'kETLwRaayvigPq_x3SNM'
)
}
token
=
'kETLwRaayvigPq_x3SNM'
subject
{
Notify
.
new_user_email
(
new_user
.
id
,
new_user
.
password
,
token
)
}
it_behaves_like
'an email sent from GitLab'
it_behaves_like
'an email sent from GitLab'
...
@@ -65,7 +67,10 @@ describe Notify do
...
@@ -65,7 +67,10 @@ describe Notify do
end
end
it
'includes a link for user to set password'
do
it
'includes a link for user to set password'
do
should
have_body_text
'http://localhost/users/password/edit?reset_password_token=kETLwRaayvigPq_x3SNM'
params
=
"reset_password_token=
#{
token
}
"
should
have_body_text
(
%r{http://localhost(:
\d
+)?/users/password/edit
\?
#{
params
}
}
)
end
end
it
'includes a link to the site'
do
it
'includes a link to the site'
do
...
...
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