spec/lib/cacher/partial_generator_spec.rb in picky-0.9.0 vs spec/lib/cacher/partial_generator_spec.rb in picky-0.9.1

- old
+ new

@@ -4,11 +4,11 @@ context 'integration' do it 'should generate the correct values with a given strategy' do generator = Cacher::PartialGenerator.new :meier => [1], :maier => [2] - generator.generate(Cacher::Partial::Subtoken.new).should == { + generator.generate(Cacher::Partial::Substring.new).should == { :meier => [1], :meie => [1], :mei => [1], :me => [1], :m => [1, 2], @@ -19,10 +19,10 @@ } end it 'should generate the correct values with a given specific strategy' do generator = Cacher::PartialGenerator.new :meier => [1], :maier => [2] - generator.generate(Cacher::Partial::Subtoken.new(:down_to => 3)).should == { + generator.generate(Cacher::Partial::Substring.new(:from => 3)).should == { :meier => [1], :meie => [1], :mei => [1], :maier => [2], :maie => [2], \ No newline at end of file