mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 07:15:43 +08:00
clarify override semantics in spec
This commit is contained in:
parent
f34907b523
commit
49e7124a5e
@ -283,19 +283,19 @@ describe DiscourseSingleSignOn do
|
||||
sso
|
||||
}
|
||||
|
||||
it 'can set title if supplied on new users' do
|
||||
it 'sets title correctly' do
|
||||
user = sso.lookup_or_create_user(ip_address)
|
||||
expect(user.title).to eq(sso.title)
|
||||
end
|
||||
|
||||
it 'sets the title if user has an empty title' do
|
||||
sso.title = ' '
|
||||
sso.title = "farmer"
|
||||
user = sso.lookup_or_create_user(ip_address)
|
||||
|
||||
sso.title = 'I am a new title'
|
||||
expect(user.title).to eq("farmer")
|
||||
|
||||
sso.title = nil
|
||||
user = sso.lookup_or_create_user(ip_address)
|
||||
|
||||
expect(user.title).to eq(sso.title)
|
||||
expect(user.title).to eq("farmer")
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user