Sha256: c827f61b2b2bb2fa75f2c9cd08caf0105b06d19a44c813db6ead2e75f3ffd966

Contents?: true

Size: 430 Bytes

Versions: 6

Compression:

Stored size: 430 Bytes

Contents

require 'spec_helper'
require_relative 'shared_examples_for_pattern1'
require_relative 'shared_examples_for_to_remove_all_masks'

describe BrDocuments::IE::CE do
  describe '#formatted' do
    it 'returns a formatted ie' do
      ie = described_class.new('123456789')
      expect(ie.formatted).to eq '12345678-9'
    end
  end

  it_behaves_like 'a pattern1', 'CE'

  include_examples 'for to remove all masks', '12345678-9'
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
br_documents-0.2.5 spec/br_documents/ie/ce_spec.rb
br_documents-0.2.4 spec/br_documents/ie/ce_spec.rb
br_documents-0.2.3 spec/br_documents/ie/ce_spec.rb
br_documents-0.2.2 spec/br_documents/ie/ce_spec.rb
br_documents-0.2.1 spec/br_documents/ie/ce_spec.rb
br_documents-0.2.0 spec/ie/ce_spec.rb