spec/jan/code_spec.rb in jan-0.2.0 vs spec/jan/code_spec.rb in jan-0.2.1

- old
+ new

@@ -43,6 +43,26 @@ context 'global code' do it('is false'){ expect(described_class.new('4901277241126')).not_to be_instore_code } end end + + describe '#instore_marking?' do + context 'instore marking' do + it('is true'){ expect(described_class.new('2101085089347')).to be_instore_marking } + end + + context 'source marking' do + it('is false'){ expect(described_class.new('4901277241126')).not_to be_instore_marking } + end + end + + describe '#source_marking?' do + context 'instore marking' do + it('is true'){ expect(described_class.new('4901277241126')).to be_source_marking } + end + + context 'source marking' do + it('is false'){ expect(described_class.new('2101085089347')).not_to be_source_marking } + end + end end