diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2017-04-24 10:14:34 -0400 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-04-24 10:14:34 -0400 |
commit | ffe4e5c74dc3913f3c0abe6f5d410033d2b9e5de (patch) | |
tree | 5631ff208d90fdf89b4f6a821bf35e539960f31c /spec/helpers | |
parent | 7f66e8ad17141cbe8a1b87adce665f49f94a4aa4 (diff) | |
download | gitlab-ce-ffe4e5c74dc3913f3c0abe6f5d410033d2b9e5de.tar.gz |
Improve specsadd-aria-to-icon
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/icons_helper_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/helpers/icons_helper_spec.rb b/spec/helpers/icons_helper_spec.rb index c3f78d3d61f..91c8faea7fd 100644 --- a/spec/helpers/icons_helper_spec.rb +++ b/spec/helpers/icons_helper_spec.rb @@ -4,12 +4,14 @@ describe IconsHelper do describe 'icon' do it 'returns aria-hidden by default' do star = icon('star') + expect(star['aria-hidden']).to eq 'aria-hidden' end it 'does not return aria-hidden if aria-label is set' do up = icon('up', 'aria-label' => 'up') - expect(up['aria-hidden']).to eq nil + + expect(up['aria-hidden']).to be_nil expect(up['aria-label']).to eq 'aria-label' end end |