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
f04e197f
Commit
f04e197f
authored
Dec 02, 2021
by
Siddharth Asthana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass formats explicitly when rendering .html format
Changelog: other
parent
c9202be3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/views/shared/ssh_keys/_key_details.html.haml_spec.rb
spec/views/shared/ssh_keys/_key_details.html.haml_spec.rb
+2
-2
No files found.
spec/views/shared/ssh_keys/_key_details.html.haml_spec.rb
View file @
f04e197f
...
...
@@ -4,7 +4,7 @@ require 'spec_helper'
RSpec
.
describe
'shared/ssh_keys/_key_delete.html.haml'
do
context
'when the text parameter is used'
do
it
'has text'
do
render
'shared/ssh_keys/key_delete.html.haml'
,
text:
'Button'
,
html_class:
''
,
button_data:
''
render
partial:
'shared/ssh_keys/key_delete'
,
formats: :html
,
locals:
{
text:
'Button'
,
html_class:
''
,
button_data:
''
}
expect
(
rendered
).
to
have_button
(
'Button'
)
end
...
...
@@ -12,7 +12,7 @@ RSpec.describe 'shared/ssh_keys/_key_delete.html.haml' do
context
'when the text parameter is not used'
do
it
'does not have text'
do
render
'shared/ssh_keys/key_delete.html.haml'
,
html_class:
''
,
button_data:
''
render
partial:
'shared/ssh_keys/key_delete'
,
formats: :html
,
locals:
{
html_class:
''
,
button_data:
''
}
expect
(
rendered
).
to
have_button
(
'Delete'
)
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