fix user_name_suggester spec

This commit is contained in:
Emili Parreno 2013-08-29 16:15:02 +02:00
parent cc5b958d9e
commit 1dedfb2251
1 changed files with 4 additions and 1 deletions

View File

@ -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