mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Apply syntax_tree formatting to spec/*
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user