Sha256: 0679a5a6357f7c9a2817b03b4991eacabe931b781ee4f0410cf1646bcdd9de50

Contents?: true

Size: 781 Bytes

Versions: 16

Compression:

Stored size: 781 Bytes

Contents

require 'spec_helper'

describe Riddle::Configuration do
  describe Riddle::Configuration::Index do
    describe '#settings' do
      it 'should return array with all settings of index' do
        Riddle::Configuration::Index.settings.should_not be_empty
      end

      it 'should return array which contains a docinfo' do
        Riddle::Configuration::Index.settings.should be_include :docinfo
      end
    end
  end

  describe 'class inherited from Riddle::Configuration::Index' do
    before :all do
      class TestIndex < Riddle::Configuration::Index; end
    end
   
    describe '#settings' do
      it 'should has same settings as Riddle::Configuration::Index' do
        TestIndex.settings.should == Riddle::Configuration::Index.settings
      end
    end

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
riddle-2.1.0 spec/riddle/configuration_spec.rb
riddle-2.0.0 spec/riddle/configuration_spec.rb
riddle-1.5.12 spec/riddle/configuration_spec.rb
riddle-1.5.11 spec/riddle/configuration_spec.rb
riddle-1.5.10 spec/riddle/configuration_spec.rb
riddle-1.5.9 spec/riddle/configuration_spec.rb
riddle-1.5.8 spec/riddle/configuration_spec.rb
riddle-1.5.7 spec/riddle/configuration_spec.rb
riddle-1.5.6 spec/riddle/configuration_spec.rb
riddle-1.5.5 spec/riddle/configuration_spec.rb
riddle-1.5.4 spec/riddle/configuration_spec.rb
riddle-1.5.3 spec/riddle/configuration_spec.rb
riddle-1.5.2 spec/riddle/configuration_spec.rb
riddle-1.5.1 spec/riddle/configuration_spec.rb
riddle-1.5.0 spec/riddle/configuration_spec.rb
riddle-1.4.0 spec/riddle/configuration_spec.rb