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

@ -4,30 +4,20 @@ RSpec.describe BasicGroupUserSerializer do
fab!(:group) { Fabricate(:group) }
fab!(:user) { Fabricate(:user) }
before do
group.add(user)
end
before { group.add(user) }
describe '#owner' do
describe 'when scoped to the user' do
it 'should be false' do
json = described_class.new(
GroupUser.last,
scope: Guardian.new(user),
root: false
).as_json
describe "#owner" do
describe "when scoped to the user" do
it "should be false" do
json = described_class.new(GroupUser.last, scope: Guardian.new(user), root: false).as_json
expect(json[:owner]).to eq(false)
end
end
describe 'when not scoped to the user' do
it 'should be nil' do
json = described_class.new(
GroupUser.last,
scope: Guardian.new,
root: false
).as_json
describe "when not scoped to the user" do
it "should be nil" do
json = described_class.new(GroupUser.last, scope: Guardian.new, root: false).as_json
expect(json[:owner]).to eq(nil)
end