Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Gitlab-External-Templates
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adri
Gitlab-External-Templates
Commits
79dbcb70
Unverified
Commit
79dbcb70
authored
7 years ago
by
Luke "Jared" Bennett
Browse files
Options
Downloads
Patches
Plain Diff
Shot in the dark, I don't understand any of our rails libs yet so this could be utterly useless.
parent
00d9a0e3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spec/features/signup_spec.rb
+11
-1
11 additions, 1 deletion
spec/features/signup_spec.rb
with
11 additions
and
1 deletion
spec/features/signup_spec.rb
+
11
−
1
View file @
79dbcb70
require
'spec_helper'
feature
'Signup'
,
feature:
true
do
include
Warden
::
Test
::
Helpers
describe
'signup with no errors'
do
context
"when sending confirmation email"
do
before
{
allow_any_instance_of
(
ApplicationSetting
).
to
receive
(
:send_user_confirmation_email
).
and_return
(
true
)
}
before
do
Warden
.
test_mode!
allow_any_instance_of
(
ApplicationSetting
).
to
receive
(
:send_user_confirmation_email
).
and_return
(
true
)
end
after
do
Warden
.
test_reset!
end
it
'creates the user account and sends a confirmation email'
do
user
=
build
(
:user
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment