Sha256: eb4b92d1a95fa541d13666d249cb137c233098323b5f58439b0bb30b88ae9a43

Contents?: true

Size: 566 Bytes

Versions: 4

Compression:

Stored size: 566 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

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

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

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

  specify 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.1.1 spec/normalizy/extensions/filters/strip_spec.rb
normalizy-1.1.0 spec/normalizy/extensions/filters/strip_spec.rb
normalizy-1.0.1 spec/normalizy/extensions/filters/strip_spec.rb
normalizy-1.0.0 spec/normalizy/extensions/filters/strip_spec.rb