Commit 26a5695e33befd0c1875696f5cb68181bf3f3368
1 parent
3d7edf0f
Exists in
master
and in
4 other branches
Fix tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
spec/helpers/application_helper_spec.rb
... | ... | @@ -38,7 +38,7 @@ describe ApplicationHelper do |
38 | 38 | current_action?(:baz, :bar, :foo).should be_true |
39 | 39 | end |
40 | 40 | end |
41 | - | |
41 | + | |
42 | 42 | describe "avatar_icon" do |
43 | 43 | avatar_file_path = File.join(Rails.root, 'public', 'gitlab_logo.png') |
44 | 44 | |
... | ... | @@ -62,11 +62,11 @@ describe ApplicationHelper do |
62 | 62 | |
63 | 63 | it "should return a generic avatar path when Gravatar is disabled" do |
64 | 64 | Gitlab.config.gravatar.stub(:enabled).and_return(false) |
65 | - gravatar_icon(user_email).should == 'no_avatar.png' | |
65 | + gravatar_icon(user_email).should == '/assets/no_avatar.png' | |
66 | 66 | end |
67 | 67 | |
68 | 68 | it "should return a generic avatar path when email is blank" do |
69 | - gravatar_icon('').should == 'no_avatar.png' | |
69 | + gravatar_icon('').should == '/assets/no_avatar.png' | |
70 | 70 | end |
71 | 71 | |
72 | 72 | it "should return default gravatar url" do | ... | ... |