File: configuration_spec.rb

package info (click to toggle)
ruby-riddle 2.3.1-2~deb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,752 kB
  • sloc: sql: 25,022; php: 5,992; ruby: 4,757; sh: 59; makefile: 5
file content (30 lines) | stat: -rw-r--r-- 812 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# frozen_string_literal: true

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