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
Léo-Paul Géneau
gitlab-ce
Commits
1f04248c
Commit
1f04248c
authored
Mar 23, 2018
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a spec that will break in EE
parent
757da4dd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
spec/features/projects/pages_spec.rb
spec/features/projects/pages_spec.rb
+4
-3
No files found.
spec/features/projects/pages_spec.rb
View file @
1f04248c
...
@@ -244,10 +244,11 @@ feature 'Pages' do
...
@@ -244,10 +244,11 @@ feature 'Pages' do
end
end
context
'setting could not be updated'
do
context
'setting could not be updated'
do
let
(
:service
)
{
instance_double
(
'Projects::UpdateService'
)
}
before
do
before
do
allow_any_instance_of
(
Projects
::
UpdateService
)
allow
(
Projects
::
UpdateService
).
to
receive
(
:new
).
and_return
(
service
)
.
to
receive
(
:execute
)
allow
(
service
).
to
receive
(
:execute
).
and_return
(
status: :error
)
.
and_return
(
status: :error
)
end
end
scenario
'tries to change the setting'
do
scenario
'tries to change the setting'
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