Commit 81e0695a authored by Rajendra Kadam's avatar Rajendra Kadam Committed by Rémy Coutable

Fix Rails/SaveBang offenses for spec/requests/api/pages/*

Fixes Rails/SaveBang cop for spec files
parent e2e3b618
......@@ -1196,9 +1196,6 @@ Rails/SaveBang:
- 'spec/requests/api/merge_request_diffs_spec.rb'
- 'spec/requests/api/merge_requests_spec.rb'
- 'spec/requests/api/notes_spec.rb'
- 'spec/requests/api/pages/internal_access_spec.rb'
- 'spec/requests/api/pages/private_access_spec.rb'
- 'spec/requests/api/pages/public_access_spec.rb'
- 'spec/requests/api/pipeline_schedules_spec.rb'
- 'spec/requests/api/project_import_spec.rb'
- 'spec/requests/api/project_milestones_spec.rb'
......
---
title: Fix Rails/SaveBang offenses for spec/requests/api/pages/*
merge_request: 41324
author:
type: fixed
......@@ -72,7 +72,7 @@ RSpec.describe "Internal Project Pages Access" do
with_them do
before do
project.project_feature.update(pages_access_level: pages_access_level)
project.project_feature.update!(pages_access_level: pages_access_level)
end
it "correct return value" do
if !with_user.nil?
......
......@@ -72,7 +72,7 @@ RSpec.describe "Private Project Pages Access" do
with_them do
before do
project.project_feature.update(pages_access_level: pages_access_level)
project.project_feature.update!(pages_access_level: pages_access_level)
end
it "correct return value" do
if !with_user.nil?
......
......@@ -72,7 +72,7 @@ RSpec.describe "Public Project Pages Access" do
with_them do
before do
project.project_feature.update(pages_access_level: pages_access_level)
project.project_feature.update!(pages_access_level: pages_access_level)
end
it "correct return value" do
if !with_user.nil?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment