Sha256: 936c71ddda0312d27929051187f3c02e0a86d6ad0b229f237367f7670f08e624

Contents?: true

Size: 681 Bytes

Versions: 111

Compression:

Stored size: 681 Bytes

Contents

# encoding: utf-8
#
require 'spec_helper'

describe Picky::Category::Location do

  let(:category) do
    category = Class.new do
      attr_accessor :exact, :partial
    end.new
    category.exact = :exact
    described_class.install_on(category, 1, 1, 1)
  end

  describe 'tokenizer' do
    it 'installs a basic tokenizer' do
      category.tokenizer.should be_kind_of(Picky::Tokenizer)
    end
  end

  describe 'bundles' do
    it 'installs an exact bundle' do
      category.exact.should be_kind_of(Picky::Wrappers::Bundle::Location)
    end
    it 'installs an partial bundle' do
      category.partial.should be_kind_of(Picky::Wrappers::Bundle::Location)
    end
  end

end

Version data entries

111 entries across 111 versions & 1 rubygems

Version Path
picky-4.5.5 spec/lib/category/location_spec.rb
picky-4.5.4 spec/lib/category/location_spec.rb
picky-4.5.3 spec/lib/category/location_spec.rb
picky-4.5.2 spec/lib/category/location_spec.rb
picky-4.5.1 spec/lib/category/location_spec.rb
picky-4.5.0 spec/lib/category/location_spec.rb
picky-4.4.2 spec/lib/category/location_spec.rb
picky-4.4.1 spec/lib/category/location_spec.rb
picky-4.4.0 spec/lib/category/location_spec.rb
picky-4.3.2 spec/lib/category/location_spec.rb
picky-4.3.1 spec/lib/category/location_spec.rb
picky-4.3.0 spec/lib/category/location_spec.rb
picky-4.2.4 spec/lib/category/location_spec.rb
picky-4.2.3 spec/lib/category/location_spec.rb
picky-4.2.2 spec/lib/category/location_spec.rb
picky-4.2.1 spec/lib/category/location_spec.rb
picky-4.2.0 spec/lib/category/location_spec.rb
picky-4.1.0 spec/lib/category/location_spec.rb
picky-4.0.9 spec/lib/category/location_spec.rb
picky-4.0.8 spec/lib/category/location_spec.rb