Sha256: 3c5db61d105b4414c1c7b36941ff51b7f400041d09a88c5aa6562e0e6ff0829f

Contents?: true

Size: 296 Bytes

Versions: 1

Compression:

Stored size: 296 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

RSpec.describe User, 'filters:number' do
  before { described_class.normalizy_rules = {} }

  specify do
    described_class.normalizy :name, with: :number

    expect(described_class.create(name: 'Washington 32').name).to eq '32'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
normalizy-0.2.0 spec/normalizy/extensions/filters/number_spec.rb