Sha256: 6d9aabc0ce43a9ae6616f5d1077576c471fbc46f6d342ac0d01b84350a491c02

Contents?: true

Size: 638 Bytes

Versions: 22

Compression:

Stored size: 638 Bytes

Contents

require 'spec_helper'

describe Blacklight::Catalog::ComponentConfiguration do
  subject do
    Class.new do
      include Blacklight::Configurable
      include Blacklight::Catalog::ComponentConfiguration

      def some_existing_action
        1
      end
    end
  end

  describe ".add_show_tools_partial" do
    it "should define an action method" do
      subject.add_show_tools_partial :xyz
      expect(subject.new).to respond_to :xyz
    end

    it "should not replace an existing method" do
      subject.add_show_tools_partial :some_existing_action
      expect(subject.new.some_existing_action).to eq 1
    end
  end

  

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
blacklight-5.15.0 spec/lib/blacklight/catalog/component_configuration_spec.rb
blacklight-5.14.0 spec/lib/blacklight/catalog/component_configuration_spec.rb
blacklight-5.13.1 spec/lib/blacklight/catalog/component_configuration_spec.rb
blacklight-5.13.0 spec/lib/blacklight/catalog/component_configuration_spec.rb
blacklight-5.11.3 spec/lib/blacklight/catalog/component_configuration_spec.rb
blacklight-5.12.1 spec/lib/blacklight/catalog/component_configuration_spec.rb
blacklight-5.12.0 spec/lib/blacklight/catalog/component_configuration_spec.rb
blacklight-5.10.3 spec/lib/blacklight/catalog/component_configuration_spec.rb
blacklight-5.9.4 spec/lib/blacklight/catalog/component_configuration_spec.rb
blacklight-5.11.2 spec/lib/blacklight/catalog/component_configuration_spec.rb
blacklight-5.11.1 spec/lib/blacklight/catalog/component_configuration_spec.rb
blacklight-5.11.0 spec/lib/blacklight/catalog/component_configuration_spec.rb
blacklight-5.10.2 spec/lib/blacklight/catalog/component_configuration_spec.rb
blacklight-5.10.1 spec/lib/blacklight/catalog/component_configuration_spec.rb
blacklight-5.10.0 spec/lib/blacklight/catalog/component_configuration_spec.rb
blacklight-5.9.3 spec/lib/blacklight/catalog/component_configuration_spec.rb
blacklight-5.9.2 spec/lib/blacklight/catalog/component_configuration_spec.rb
blacklight-5.9.1 spec/lib/blacklight/catalog/component_configuration_spec.rb
blacklight-5.9.0 spec/lib/blacklight/catalog/component_configuration_spec.rb
blacklight-5.8.2 spec/lib/blacklight/catalog/component_configuration_spec.rb