Sha256: 87f748f927416baa538fbf61926e9ccebf0f15e32a26a5c8d5ac8194f39b318a
Contents?: true
Size: 911 Bytes
Versions: 2
Compression:
Stored size: 911 Bytes
Contents
require 'spec_helper' describe Generators::PartialGenerator do context 'integration' do it 'should generate the correct values with a given strategy' do generator = described_class.new :meier => [1], :maier => [2] generator.generate(Generators::Partial::Substring.new).should == { :meier => [1], :meie => [1], :mei => [1], :me => [1], :m => [1, 2], :maier => [2], :maie => [2], :mai => [2], :ma => [2] } end it 'should generate the correct values with a given specific strategy' do generator = described_class.new :meier => [1], :maier => [2] generator.generate(Generators::Partial::Substring.new(:from => 3)).should == { :meier => [1], :meie => [1], :mei => [1], :maier => [2], :maie => [2], :mai => [2] } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
picky-2.7.0 | spec/lib/generators/partial_generator_spec.rb |
picky-2.6.0 | spec/lib/generators/partial_generator_spec.rb |