Sha256: fa84502ef73530d482a42cdced9d19b1ed597853f56804f2be4b2b94470f3b69

Contents?: true

Size: 451 Bytes

Versions: 246

Compression:

Stored size: 451 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/patches/pathname/basename_sub'

RSpec.describe ::Pathname do
  it do
    expect(described_class.new('/absolute/path/to/file').basename_sub { |_b| 'other_file' }).to eq(
      described_class.new('/absolute/path/to/other_file')
    )
  end

  it do
    expect(described_class.new('file').basename_sub { |b| b.to_s + '_appended' }).to eq(
      described_class.new('file_appended')
    )
  end
end

Version data entries

246 entries across 246 versions & 3 rubygems

Version Path
eac_tools-0.41.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.40.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.39.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.38.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.37.2 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.37.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.37.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.36.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.36.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.35.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.34.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.33.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.32.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.31.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.31.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.30.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.29.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.28.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.27.2 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.27.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb