Fix tests

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2013-12-17 11:38:30 +02:00
parent 3d7edf0fe3
commit 26a5695e33
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -62,11 +62,11 @@ describe ApplicationHelper do
it "should return a generic avatar path when Gravatar is disabled" do it "should return a generic avatar path when Gravatar is disabled" do
Gitlab.config.gravatar.stub(:enabled).and_return(false) Gitlab.config.gravatar.stub(:enabled).and_return(false)
gravatar_icon(user_email).should == 'no_avatar.png' gravatar_icon(user_email).should == '/assets/no_avatar.png'
end end
it "should return a generic avatar path when email is blank" do it "should return a generic avatar path when email is blank" do
gravatar_icon('').should == 'no_avatar.png' gravatar_icon('').should == '/assets/no_avatar.png'
end end
it "should return default gravatar url" do it "should return default gravatar url" do