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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
115ab6ee
Commit
115ab6ee
authored
May 25, 2021
by
Francisco Javier López
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo showing error message after destroy page
Changelog: fixed
parent
948ecefe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/controllers/concerns/wiki_actions.rb
app/controllers/concerns/wiki_actions.rb
+1
-1
spec/support/shared_examples/controllers/wiki_actions_shared_examples.rb
...ared_examples/controllers/wiki_actions_shared_examples.rb
+1
-1
No files found.
app/controllers/concerns/wiki_actions.rb
View file @
115ab6ee
...
...
@@ -177,7 +177,7 @@ module WikiActions
redirect_to
wiki_path
(
wiki
),
status: :found
else
@error
=
response
@error
=
response
.
message
render
'shared/wikis/edit'
end
end
...
...
spec/support/shared_examples/controllers/wiki_actions_shared_examples.rb
View file @
115ab6ee
...
...
@@ -486,7 +486,7 @@ RSpec.shared_examples 'wiki controller actions' do
end
.
not_to
change
{
wiki
.
list_pages
.
size
}
expect
(
response
).
to
render_template
(
'shared/wikis/edit'
)
expect
(
assigns
(
:error
)
.
message
).
to
eq
(
'Could not delete wiki page'
)
expect
(
assigns
(
:error
)).
to
eq
(
'Could not delete wiki page'
)
end
end
end
...
...
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