Merge pull request #1400 from eparreno/fix_user_name_suggester_specs

fix user_name_suggester spec
This commit is contained in:
Robin Ward 2013-08-29 07:53:45 -07:00
commit 3f6a231ddc
1 changed files with 4 additions and 1 deletions

View File

@ -10,6 +10,9 @@ describe UserNameSuggester do
end end
describe '.suggest' do describe '.suggest' do
before do
User.stubs(:username_length).returns(3..15)
end
it "doesn't raise an error on nil username" do it "doesn't raise an error on nil username" do
UserNameSuggester.suggest(nil).should be_nil UserNameSuggester.suggest(nil).should be_nil