Sha256: 3c3b191022d0383e66a4b60860455901d8c3330965c76d3eb825d2d57e09e4e5

Contents?: true

Size: 406 Bytes

Versions: 14

Compression:

Stored size: 406 Bytes

Contents

# frozen_string_literal: true

RSpec.describe Blacklight::IconHelperBehavior do
  describe '#blacklight_icon' do
    subject(:icon) { helper.blacklight_icon(:search, classes: 'custom-class') }

    it 'returns the svg' do
      expect(icon).to have_css '.blacklight-icons svg'
    end

    it 'adds classes to the wrappering element' do
      expect(icon).to have_css '.custom-class svg'
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
blacklight-7.40.0 spec/helpers/blacklight/icon_helper_behavior_spec.rb
blacklight-7.39.0 spec/helpers/blacklight/icon_helper_behavior_spec.rb
blacklight-7.38.0 spec/helpers/blacklight/icon_helper_behavior_spec.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/spec/helpers/blacklight/icon_helper_behavior_spec.rb
blacklight-7.37.0 spec/helpers/blacklight/icon_helper_behavior_spec.rb
blacklight-7.36.2 spec/helpers/blacklight/icon_helper_behavior_spec.rb
blacklight-7.36.1 spec/helpers/blacklight/icon_helper_behavior_spec.rb
blacklight-7.36.0 spec/helpers/blacklight/icon_helper_behavior_spec.rb
blacklight-7.35.0 spec/helpers/blacklight/icon_helper_behavior_spec.rb
blacklight-7.34.0 spec/helpers/blacklight/icon_helper_behavior_spec.rb
blacklight-7.33.1 spec/helpers/blacklight/icon_helper_behavior_spec.rb
blacklight-7.33.0 spec/helpers/blacklight/icon_helper_behavior_spec.rb
blacklight-7.32.0 spec/helpers/blacklight/icon_helper_behavior_spec.rb
blacklight-7.31.0 spec/helpers/blacklight/icon_helper_behavior_spec.rb