diff options
author | Maxim Rydkin <maks.rydkin@gmail.com> | 2017-09-01 00:43:13 +0300 |
---|---|---|
committer | Maxim Rydkin <maks.rydkin@gmail.com> | 2017-09-07 13:16:14 +0300 |
commit | db3bc89792c5450cb93e674d621d5ea996ee01f6 (patch) | |
tree | 48120717ce854b618c38f796ba2b6c3dcf5f0737 /spec/helpers | |
parent | d441b5e7b52ccfadf9adb3b7fc73f5e33f5da6bf (diff) |
refactor `app/helpers/projects_helper.rb:21:3`
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/projects_helper_spec.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/helpers/projects_helper_spec.rb b/spec/helpers/projects_helper_spec.rb index d1efa318d14..93a5b55e4d0 100644 --- a/spec/helpers/projects_helper_spec.rb +++ b/spec/helpers/projects_helper_spec.rb @@ -191,7 +191,15 @@ describe ProjectsHelper do end end - describe 'link_to_member' do + describe '#link_to_member_avatar' do + let(:user) { create(:user) } + + it 'returns image tag for member avatar' do + expect(helper.link_to_member_avatar(user)).to eq("<img width=\"16\" class=\"avatar avatar-inline s16 lazy\" alt=\"\" data-src=\"http://www.gravatar.com/avatar/a763e4acc6bc22cbabeae2638cfd4db4?s=32&d=identicon\" src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" />") + end + end + + describe '#link_to_member' do let(:group) { create(:group) } let(:project) { create(:project, group: group) } let(:user) { create(:user) } |