diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2018-07-23 14:58:21 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-07-23 14:58:21 +0000 |
commit | 91bbdc907d72fa5bd6d30ded825c2b90dd59d28e (patch) | |
tree | 46ca1c8c4919b3ff3b8241c57bb301952a888267 /spec/helpers | |
parent | 1a959e1bf4269b3c74cb317d18bcc624436aabc5 (diff) | |
download | gitlab-ce-91bbdc907d72fa5bd6d30ded825c2b90dd59d28e.tar.gz |
Display GPG status on repository and blob pages
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/button_helper_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/helpers/button_helper_spec.rb b/spec/helpers/button_helper_spec.rb index fee8df10129..630f3eff258 100644 --- a/spec/helpers/button_helper_spec.rb +++ b/spec/helpers/button_helper_spec.rb @@ -121,6 +121,8 @@ describe ButtonHelper do end describe 'clipboard_button' do + include IconsHelper + let(:user) { create(:user) } let(:project) { build_stubbed(:project) } @@ -145,7 +147,7 @@ describe ButtonHelper do expect(element.attr('data-clipboard-text')).to eq(nil) expect(element.inner_text).to eq("") - expect(element).to have_selector('.fa.fa-clipboard') + expect(element.to_html).to include sprite_icon('duplicate') end end @@ -178,7 +180,7 @@ describe ButtonHelper do context 'with `hide_button_icon` attribute provided' do it 'shows copy to clipboard button without tooltip support' do - expect(element(hide_button_icon: true)).not_to have_selector('.fa.fa-clipboard') + expect(element(hide_button_icon: true).to_html).not_to include sprite_icon('duplicate') end end end |