Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
G
GitLab Community Edition
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Drew Blessing
GitLab Community Edition
Commits
61a62e00
Commit
61a62e00
authored
8 years ago
by
Douglas Barbosa Alexandre
Browse files
Options
Downloads
Patches
Plain Diff
Fix specs for Projects::NotificationSettingsController
parent
aabb466e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spec/controllers/projects/notification_settings_controller_spec.rb
+0
-28
0 additions, 28 deletions
...rollers/projects/notification_settings_controller_spec.rb
with
0 additions
and
28 deletions
spec/controllers/projects/notification_settings_controller_spec.rb
+
0
−
28
View file @
61a62e00
...
...
@@ -8,34 +8,6 @@ describe Projects::NotificationSettingsController do
project
.
team
<<
[
user
,
:developer
]
end
describe
'#create'
do
context
'when not authorized'
do
it
'redirects to sign in page'
do
post
:create
,
namespace_id:
project
.
namespace
.
to_param
,
project_id:
project
.
to_param
,
notification_setting:
{
level: :participating
}
expect
(
response
).
to
redirect_to
(
new_user_session_path
)
end
end
context
'when authorized'
do
before
do
sign_in
(
user
)
end
it
'returns success'
do
post
:create
,
namespace_id:
project
.
namespace
.
to_param
,
project_id:
project
.
to_param
,
notification_setting:
{
level: :participating
}
expect
(
response
.
status
).
to
eq
200
end
end
end
describe
'#update'
do
context
'when not authorized'
do
it
'redirects to sign in page'
do
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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