Sha256: 24cb3a2aedfbdd71c9a27761f8f22544dae20072a5f58bb381ccfadddad4b003

Contents?: true

Size: 483 Bytes

Versions: 248

Compression:

Stored size: 483 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/fs/extname'

RSpec.describe ::EacRubyUtils::Fs do
  describe '#extname' do
    {
      'After.Life.S01E01.WEBRip.x264-ION10.mp4' => '.mp4',
      's01e01.en.srt' => '.en.srt',
      's01e01.srt' => '.srt',
      '/path/to/file.tar.gz' => '.tar.gz'
    }.each do |source, expected|
      context "when source is \"#{source}\"" do
        it { expect(described_class.extname(source)).to eq(expected) }
      end
    end
  end
end

Version data entries

248 entries across 248 versions & 3 rubygems

Version Path
eac_tools-0.76.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
eac_tools-0.76.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
eac_tools-0.75.2 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
eac_tools-0.75.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
eac_tools-0.75.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
eac_tools-0.74.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
eac_tools-0.74.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
eac_tools-0.73.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
eac_tools-0.72.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
eac_tools-0.70.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
eac_tools-0.70.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
eac_tools-0.69.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
eac_tools-0.69.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
eac_tools-0.68.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
eac_tools-0.67.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
eac_tools-0.67.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
eac_tools-0.66.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
eac_tools-0.65.1 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
eac_tools-0.65.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
eac_tools-0.64.0 sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb