Move nobody
position in UserRole
magic number to constant (#29465)
This commit is contained in:
parent
ec953bf378
commit
3389c41b58
2 changed files with 5 additions and 4 deletions
|
@ -139,7 +139,7 @@ RSpec.describe UserRole do
|
|||
end
|
||||
|
||||
it 'has negative position' do
|
||||
expect(subject.position).to eq(-1)
|
||||
expect(subject.position).to eq(described_class::NOBODY_POSITION)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -159,7 +159,7 @@ RSpec.describe UserRole do
|
|||
end
|
||||
|
||||
it 'has negative position' do
|
||||
expect(subject.position).to eq(-1)
|
||||
expect(subject.position).to eq(described_class::NOBODY_POSITION)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue