summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/helpers/icons_helper_spec.rb4
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