Sha256: aaf15bf8aafb3a17e8f2c0e5bf9872572db265f708d31a692ae7c77587bbb1c2

Contents?: true

Size: 467 Bytes

Versions: 5

Compression:

Stored size: 467 Bytes

Contents

require 'spec_helper'

RSpec.describe NfseGyn::Sanitizer do
  describe '#clear' do
    {
      'Descrição do Servico com vários caracteres especiais.' => 'Descricao do Servico com varios caracteres especiais',
      'Parque Amazônia,79 / Sala 313' => 'Parque Amazonia79  Sala 313'
    }.each do |dirty, clean|
      context "when #{dirty}" do
        subject { described_class.new(dirty).clear }
        it { is_expected.to eq clean }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nfse_gyn-0.3.0 spec/lib/sanitizer_spec.rb
nfse_gyn-0.2.0 spec/lib/sanitizer_spec.rb
nfse_gyn-0.1.2 spec/lib/sanitizer_spec.rb
nfse_gyn-0.1.1 spec/lib/sanitizer_spec.rb
nfse_gyn-0.1.0 spec/lib/sanitizer_spec.rb