Commit 126ebcfc authored by Peter Leitzen's avatar Peter Leitzen

Fix RuboCop offenses

parent bec87301
...@@ -522,18 +522,18 @@ describe User do ...@@ -522,18 +522,18 @@ describe User do
describe 'internal methods' do describe 'internal methods' do
let!(:user) { create(:user) } let!(:user) { create(:user) }
let!(:ghost) { User.ghost } let!(:ghost) { described_class.ghost }
let!(:support_bot) { User.support_bot } let!(:support_bot) { described_class.support_bot }
let!(:non_internal) { [user] } let!(:non_internal) { [user] }
let!(:internal) { [ghost, support_bot] } let!(:internal) { [ghost, support_bot] }
it 'returns non internal users' do it 'returns non internal users' do
expect(User.internal).to eq(internal) expect(described_class.internal).to eq(internal)
expect(internal.all?(&:internal?)).to eq(true) expect(internal.all?(&:internal?)).to eq(true)
end end
it 'returns internal users' do it 'returns internal users' do
expect(User.non_internal).to eq(non_internal) expect(described_class.non_internal).to eq(non_internal)
expect(non_internal.all?(&:internal?)).to eq(false) expect(non_internal.all?(&:internal?)).to eq(false)
end end
......
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