Sha256: ab9cad70ed06db1a88f8751bfc5ae1c125d745265d5e112236e211b902bed450

Contents?: true

Size: 546 Bytes

Versions: 4

Compression:

Stored size: 546 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

RSpec.describe ModelStrip, 'filters:strip' do
  it do
    expect(described_class.create(strip: '  Botelho  ').strip).to eq 'Botelho'
  end

  it do
    expect(described_class.create(strip_side_left: '  Botelho  ').strip_side_left).to eq 'Botelho  '
  end

  it do
    expect(described_class.create(strip_side_right: '  Botelho  ').strip_side_right).to eq '  Botelho'
  end

  it do
    expect(described_class.create(strip_side_both: '  Botelho  ').strip_side_both).to eq 'Botelho'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
normalizy-1.5.0 spec/normalizy/extensions/filters/strip_spec.rb
normalizy-1.4.0 spec/normalizy/extensions/filters/strip_spec.rb
normalizy-1.3.0 spec/normalizy/extensions/filters/strip_spec.rb
normalizy-1.2.0 spec/normalizy/extensions/filters/strip_spec.rb