mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 04:01:29 -05:00
fix user_name_suggester spec
This commit is contained in:
parent
cc5b958d9e
commit
1dedfb2251
1 changed files with 4 additions and 1 deletions
|
@ -10,6 +10,9 @@ describe UserNameSuggester do
|
|||
end
|
||||
|
||||
describe '.suggest' do
|
||||
before do
|
||||
User.stubs(:username_length).returns(3..15)
|
||||
end
|
||||
|
||||
it "doesn't raise an error on nil username" do
|
||||
UserNameSuggester.suggest(nil).should be_nil
|
||||
|
@ -67,4 +70,4 @@ describe UserNameSuggester do
|
|||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue