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
55d5d636
Commit
55d5d636
authored
Dec 15, 2021
by
Justin Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add translated strings to specs
parent
ad11b5e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
spec/views/projects/hooks/edit.html.haml_spec.rb
spec/views/projects/hooks/edit.html.haml_spec.rb
+3
-3
spec/views/projects/hooks/index.html.haml_spec.rb
spec/views/projects/hooks/index.html.haml_spec.rb
+3
-3
No files found.
spec/views/projects/hooks/edit.html.haml_spec.rb
View file @
55d5d636
...
...
@@ -15,8 +15,8 @@ RSpec.describe 'projects/hooks/edit' do
it
'renders webhook page with "Recent events"'
do
render
expect
(
rendered
).
to
have_css
(
'h4'
,
text:
'Webhook'
)
expect
(
rendered
).
to
have_text
(
'Recent events'
)
expect
(
rendered
).
to
have_css
(
'h4'
,
text:
_
(
'Webhook'
)
)
expect
(
rendered
).
to
have_text
(
_
(
'Recent events'
)
)
end
context
'webhook is rate limited'
do
...
...
@@ -27,7 +27,7 @@ RSpec.describe 'projects/hooks/edit' do
it
'renders alert'
do
render
expect
(
rendered
).
to
have_text
(
'Webhook was automatically disabled'
)
expect
(
rendered
).
to
have_text
(
s_
(
'Webhooks|Webhook was automatically disabled'
)
)
end
end
end
spec/views/projects/hooks/index.html.haml_spec.rb
View file @
55d5d636
...
...
@@ -17,9 +17,9 @@ RSpec.describe 'projects/hooks/index' do
it
'renders webhooks page with "Project Hooks"'
do
render
expect
(
rendered
).
to
have_css
(
'h4'
,
text:
'Webhooks'
)
expect
(
rendered
).
to
have_css
(
'h4'
,
text:
_
(
'Webhooks'
)
)
expect
(
rendered
).
to
have_text
(
'Project Hooks'
)
expect
(
rendered
).
not_to
have_css
(
'.gl-badge'
,
text:
'Disabled'
)
expect
(
rendered
).
not_to
have_css
(
'.gl-badge'
,
text:
_
(
'Disabled'
)
)
end
context
'webhook is rate limited'
do
...
...
@@ -30,7 +30,7 @@ RSpec.describe 'projects/hooks/index' do
it
'renders "Disabled" badge'
do
render
expect
(
rendered
).
to
have_css
(
'.gl-badge'
,
text:
'Disabled'
)
expect
(
rendered
).
to
have_css
(
'.gl-badge'
,
text:
_
(
'Disabled'
)
)
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