Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Com2025-Coursework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Butler, Alexis (UG - Computer Science)
Com2025-Coursework
Commits
89ebe757
Commit
89ebe757
authored
4 years ago
by
Butler, Alexis (UG - Computer Science)
Browse files
Options
Downloads
Patches
Plain Diff
Passed admin section cont tests
parent
f1e7ae60
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/views/admin/sections/_section.html.erb
+1
-1
1 addition, 1 deletion
app/views/admin/sections/_section.html.erb
test/controllers/admin/sections_controller_test.rb
+1
-1
1 addition, 1 deletion
test/controllers/admin/sections_controller_test.rb
with
2 additions
and
2 deletions
app/views/admin/sections/_section.html.erb
+
1
−
1
View file @
89ebe757
...
...
@@ -4,6 +4,6 @@
<h4>
<%=
section
.
name
%>
</h4>
</td>
<td>
<%=
link_to
fa_icon
(
'trash'
),
[
:admin
,
section
],
method: :delete
,
data:
{
confirm:
t
(
'.confirm'
)
}
%>
<%=
link_to
fa_icon
(
'trash'
),
[
:admin
,
section
],
class:
'btn btn-sm btn-danger'
,
method: :delete
,
data:
{
confirm:
t
(
'.confirm'
)
}
%>
</td>
</tr>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
test/controllers/admin/sections_controller_test.rb
+
1
−
1
View file @
89ebe757
...
...
@@ -57,7 +57,7 @@ class Admin::SectionsControllerTest < ActionDispatch::IntegrationTest
assert_redirected_to
(
admin_sections_url
)
assert_equal
'Section deleted'
,
flash
[
:success
]
end
test
'should not delete a
product
if not admin'
do
test
'should not delete a
section
if not admin'
do
sign_in_as_tester
assert_no_difference
'Section.count'
do
delete
admin_section_url
(
sections
(
:one
))
...
...
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