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