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
Jérome Perrin
gitlab-ce
Commits
bdb03cd4
Commit
bdb03cd4
authored
Apr 13, 2017
by
George Andrinopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor build_service_spec
parent
defbff48
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
spec/services/users/build_service_spec.rb
spec/services/users/build_service_spec.rb
+2
-4
No files found.
spec/services/users/build_service_spec.rb
View file @
bdb03cd4
...
...
@@ -33,8 +33,7 @@ describe Users::BuildService, services: true do
context
'when "send_user_confirmation_email" application setting is true'
do
before
do
current_application_settings
=
double
(
:current_application_settings
,
send_user_confirmation_email:
true
,
signup_enabled?:
true
)
allow
(
service
).
to
receive
(
:current_application_settings
).
and_return
(
current_application_settings
)
stub_application_setting
(
send_user_confirmation_email:
true
,
signup_enabled?:
true
)
end
it
'does not confirm the user'
do
...
...
@@ -44,8 +43,7 @@ describe Users::BuildService, services: true do
context
'when "send_user_confirmation_email" application setting is false'
do
before
do
current_application_settings
=
double
(
:current_application_settings
,
send_user_confirmation_email:
false
,
signup_enabled?:
true
)
allow
(
service
).
to
receive
(
:current_application_settings
).
and_return
(
current_application_settings
)
stub_application_setting
(
send_user_confirmation_email:
false
,
signup_enabled?:
true
)
end
it
'confirms the user'
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