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