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