Sha256: 86ef98b33ea9de2dd40aeb039edee5967f8854c7d7957e5c5ac28fce6fbf5946

Contents?: true

Size: 558 Bytes

Versions: 7

Compression:

Stored size: 558 Bytes

Contents

require 'spec_helper'

describe SearchKit::Configuration do
  let(:klass) { Class.new }

  before { klass.extend(described_class) }

  subject { klass }

  it { is_expected.to respond_to :config }
  it { is_expected.to respond_to :configure }

  describe "Arbitrary assignment" do
    it "allows any arbitrary setting to hold a value" do
      expect {
        klass.configure do |config|
          config.arbitrary_setting = "value"
        end
      }.to change { klass.config.arbitrary_setting }
        .from(nil)
        .to("value")
    end
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
search-kit-0.0.10 spec/search_kit/configuration_spec.rb
search-kit-0.0.9 spec/search_kit/configuration_spec.rb
search-kit-0.0.8 spec/search_kit/configuration_spec.rb
search-kit-0.0.7 spec/search_kit/configuration_spec.rb
search-kit-0.0.6 spec/search_kit/configuration_spec.rb
search-kit-0.0.5 spec/search_kit/configuration_spec.rb
search-kit-0.0.4 spec/search_kit/configuration_spec.rb