Sha256: ea070ee9793bfb8a1636a8d571c8dd543553adfe5dd9faf0281ae8a1d5c4619f

Contents?: true

Size: 743 Bytes

Versions: 1

Compression:

Stored size: 743 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Normalizy::Filters::Number do
  it { expect(subject.call('abcdefghijklmnopkrstuvxyz')).to eq nil }
  it { expect(subject.call('ABCDEFGHIJKLMNOPKRSTUVXYZ')).to eq nil }
  it { expect(subject.call('áéíóúàâêôãõ')).to               eq nil }
  it { expect(subject.call('0123456789')).to                eq 123_456_789 }
  it { expect(subject.call("\n")).to                        eq nil }
  it { expect(subject.call(42)).to                          eq 42 }
  it { expect(subject.call(nil)).to                         eq nil }
  it { expect(subject.call('nil')).to                       eq nil }
  it { expect(subject.call('')).to                          eq nil }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
normalizy-0.1.0 spec/normalizy/filters/number_spec.rb