Fix tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
3d7edf0fe3
commit
26a5695e33
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue