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.55.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.55.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.54.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.53.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.52.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.51.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.50.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.49.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.48.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.48.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.47.2 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.47.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.47.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.46.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.45.2 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.45.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.45.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.44.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.43.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb
eac_tools-0.42.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb