DEV: Apply syntax_tree formatting to spec/*

This commit is contained in:
David Taylor
2023-01-09 11:18:21 +00:00
parent 0cf6421716
commit cb932d6ee1
907 changed files with 58693 additions and 45909 deletions

View File

@@ -1,10 +1,10 @@
# frozen_string_literal: true
RSpec.describe 'Setting changes' do
describe '#must_approve_users' do
RSpec.describe "Setting changes" do
describe "#must_approve_users" do
before { SiteSetting.must_approve_users = false }
it 'does not approve a user with associated reviewables' do
it "does not approve a user with associated reviewables" do
user_pending_approval = Fabricate(:reviewable_user).target
SiteSetting.must_approve_users = true
@@ -12,7 +12,7 @@ RSpec.describe 'Setting changes' do
expect(user_pending_approval.reload.approved?).to eq(false)
end
it 'approves a user with no associated reviewables' do
it "approves a user with no associated reviewables" do
non_approved_user = Fabricate(:user, approved: false)
SiteSetting.must_approve_users = true
@@ -21,10 +21,10 @@ RSpec.describe 'Setting changes' do
end
end
describe '#reviewable_low_priority_threshold' do
describe "#reviewable_low_priority_threshold" do
let(:new_threshold) { 5 }
it 'sets the low priority value' do
it "sets the low priority value" do
medium_threshold = 10
Reviewable.set_priorities(medium: medium_threshold)