Sha256: 4993ea99ad18108a77d598ef4899c6ed9fdd47b3688a1ec2284f76a34929c1ea

Contents?: true

Size: 645 Bytes

Versions: 10

Compression:

Stored size: 645 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Normalizy::Filters::Strip do
  it { expect(subject.call('  Some  Text  ')).to               eq 'Some  Text' }
  it { expect(subject.call('  Some  Text  ', side: :left)).to  eq 'Some  Text  ' }
  it { expect(subject.call('  Some  Text  ', side: :right)).to eq '  Some  Text' }
  it { expect(subject.call('  Some  Text  ', side: :both)).to  eq 'Some  Text' }
  it { expect(subject.call("\n")).to                           eq '' }
  it { expect(subject.call(42)).to                             eq 42 }
  it { expect(subject.call(nil)).to                            eq nil }
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
normalizy-1.5.0 spec/normalizy/filters/strip_spec.rb
normalizy-1.4.0 spec/normalizy/filters/strip_spec.rb
normalizy-1.3.0 spec/normalizy/filters/strip_spec.rb
normalizy-1.2.0 spec/normalizy/filters/strip_spec.rb
normalizy-1.1.1 spec/normalizy/filters/strip_spec.rb
normalizy-1.1.0 spec/normalizy/filters/strip_spec.rb
normalizy-1.0.1 spec/normalizy/filters/strip_spec.rb
normalizy-1.0.0 spec/normalizy/filters/strip_spec.rb
normalizy-0.2.0 spec/normalizy/filters/strip_spec.rb
normalizy-0.1.0 spec/normalizy/filters/strip_spec.rb