Skip to content

Commit 4e7bfcb

Browse files
committed
Fix names of describe blocks in User spec
These methods are class methods and so we should use a "." prefix rather than a "#" prefix which denotes an instance method.
1 parent ebaa275 commit 4e7bfcb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/models/user_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
end
5151
end
5252

53-
describe '#from_token' do
53+
describe '.from_token' do
5454
subject(:user) { described_class.from_token(token: UserProfileMock::TOKEN) }
5555

5656
before do
@@ -95,7 +95,7 @@
9595
end
9696
end
9797

98-
describe '#from_omniauth' do
98+
describe '.from_omniauth' do
9999
subject(:auth_subject) { described_class.from_omniauth(auth) }
100100

101101
let(:user) { build(:user) }
@@ -158,7 +158,7 @@
158158
include_examples 'role_check', 'school-student'
159159
end
160160

161-
describe '#where' do
161+
describe '.where' do
162162
subject(:user) { described_class.where(id: '00000000-0000-0000-0000-000000000000').first }
163163

164164
before do

0 commit comments

Comments
 (0)