Commit 571fbce5 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'rails-save-bang-22' into 'master'

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

See merge request gitlab-org/gitlab!41324
parents ce5c1cf8 81e0695a
......@@ -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