Sha256: 06f0018ec083abb2824998eb231ef79a88e06c267e00e57ac41708fe1a921bc7

Contents?: true

Size: 600 Bytes

Versions: 3

Compression:

Stored size: 600 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe Configuration::Indexes do
  
  before(:each) do
    @config = Configuration::Indexes.new
  end
  
  describe "types" do
    it "exists" do
      lambda { @config.types }.should_not raise_error
    end
    it "is initially empty" do
      @config.types.should be_empty
    end
  end
  
  describe "default_tokenizer" do
    it "is a default tokenizer" do
      @config.default_tokenizer.should be_kind_of(Tokenizers::Index)
    end
    it "does not cache" do
      @config.default_tokenizer.should_not == @config.default_tokenizer
    end
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
picky-0.11.2 spec/lib/configuration/indexes_spec.rb
picky-0.11.1 spec/lib/configuration/indexes_spec.rb
picky-0.11.0 spec/lib/configuration/indexes_spec.rb