Sha256: 35e83954710554909fbe818faa7253dd659ac565d71afc2c47d12c186c3409c7

Contents?: true

Size: 653 Bytes

Versions: 13

Compression:

Stored size: 653 Bytes

Contents

require 'spec_helper'

describe Kashiwamochi::Configuration do
  subject { Kashiwamochi.config }

  describe '#configure' do
    before do
      Kashiwamochi.configure do |config|
        @config = config
      end
    end
    subject { @config }

    it { should be_an_instance_of Kashiwamochi::Configuration }
    it { should eq Kashiwamochi.config }
  end

  describe 'config' do
    context 'by default' do
      its(:search_key) { should eq :q }
      its(:sort_key) { should eq :s }
      its(:form_class) { should eq :search }
      its(:form_method) { should eq :form_for }
      its(:sort_link_class) { should eq :sort_link }
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
kashiwamochi-0.6.2 spec/kashiwamochi/config_spec.rb
kashiwamochi-0.6.1 spec/kashiwamochi/config_spec.rb
kashiwamochi-0.6.0 spec/kashiwamochi/config_spec.rb
kashiwamochi-0.5.0 spec/kashiwamochi/config_spec.rb
kashiwamochi-0.4.3 spec/kashiwamochi/config_spec.rb
kashiwamochi-0.4.2 spec/kashiwamochi/config_spec.rb
kashiwamochi-0.4.1 spec/kashiwamochi/config_spec.rb
kashiwamochi-0.4.0 spec/kashiwamochi/config_spec.rb
kashiwamochi-0.3.0 spec/kashiwamochi/config_spec.rb
kashiwamochi-0.2.3 spec/kashiwamochi/config_spec.rb
kashiwamochi-0.2.2 spec/kashiwamochi/config_spec.rb
kashiwamochi-0.2.1 spec/kashiwamochi/config_spec.rb
kashiwamochi-0.2.0 spec/kashiwamochi/config_spec.rb