Sha256: db59872e0aafba3eaaebdcb412de356e89e469152c913fb12ded489dd26b4d62

Contents?: true

Size: 328 Bytes

Versions: 11

Compression:

Stored size: 328 Bytes

Contents

require 'spec_helper'

describe 'String#remove_suffix' do
  it 'removes a suffix in a string' do
    expect('Ladies Night'.remove_suffix(' Night')).to eq('Ladies')
  end
end

describe 'String#remove_suffix!' do
  it 'removes a suffix in a string' do
    expect('Ladies Night'.remove_suffix!(' Night')).to eq('Ladies')
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
dirwatch-0.0.9 vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/string/remove_suffix_spec.rb
dirwatch-0.0.8 vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/string/remove_suffix_spec.rb
dirwatch-0.0.6 vendor/bundle/ruby/2.3.0/gems/powerpack-0.1.1/spec/powerpack/string/remove_suffix_spec.rb
dirwatch-0.0.5 vendor/bundle/ruby/2.3.0/gems/powerpack-0.1.1/spec/powerpack/string/remove_suffix_spec.rb
dirwatch-0.0.4 vendor/bundle/ruby/2.3.0/gems/powerpack-0.1.1/spec/powerpack/string/remove_suffix_spec.rb
dirwatch-0.0.3 vendor/bundle/ruby/2.3.0/gems/powerpack-0.1.1/spec/powerpack/string/remove_suffix_spec.rb
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/powerpack-0.1.1/spec/powerpack/string/remove_suffix_spec.rb
fluent-plugin-detect-memb-exceptions-0.0.2 vendor/bundle/ruby/2.0.0/gems/powerpack-0.1.1/spec/powerpack/string/remove_suffix_spec.rb
fluent-plugin-detect-memb-exceptions-0.0.1 vendor/bundle/ruby/2.0.0/gems/powerpack-0.1.1/spec/powerpack/string/remove_suffix_spec.rb
powerpack-0.1.1 spec/powerpack/string/remove_suffix_spec.rb
powerpack-0.1.0 spec/powerpack/string/remove_suffix_spec.rb