Sha256: b8649a7bbef6fdbd202ddb244c855c0b2c07b5bda6f56bd54f241493778182ba
Contents?: true
Size: 936 Bytes
Versions: 8
Compression:
Stored size: 936 Bytes
Contents
require 'spec_helper' describe Picky::Bundle do before(:each) do @index = Picky::Index.new :some_index @category = Picky::Category.new :some_category, @index end let(:bundle) do described_class.new :some_name, @category, Picky::Generators::Weights::Default, Picky::Generators::Partial::Default, Picky::Generators::Similarity::DoubleMetaphone.new(3) end describe 'identifier' do it 'is correct' do bundle.identifier.should == 'some_index:some_category:some_name' end end describe 'index_path' do it 'is correct' do bundle.index_path(:some_type).should == 'spec/test_directory/index/test/some_index/some_category_some_name_some_type' end it 'is correct' do bundle.index_path.should == 'spec/test_directory/index/test/some_index/some_category_some_name' end end end
Version data entries
8 entries across 8 versions & 1 rubygems