BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
97e2f8a0
Commit
97e2f8a0
authored
Sep 23, 2014
by
Vinnie Okada
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update expected value in notify_spec
Prevent test failures when Gitlab is configured to use a port other than 80.
parent
fd338d67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
notify_spec.rb
spec/mailers/notify_spec.rb
+7
-2
No files found.
spec/mailers/notify_spec.rb
View file @
97e2f8a0
...
...
@@ -44,7 +44,9 @@ describe Notify do
let
(
:example_site_path
)
{
root_path
}
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'
...
...
@@ -65,7 +67,10 @@ describe Notify do
end
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
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