Merge pull request #1400 from eparreno/fix_user_name_suggester_specs
fix user_name_suggester spec
This commit is contained in:
commit
3f6a231ddc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue