Sha256: 6dd96ea6f43865b1244903c729acefd56daf7048d22789ef8adf93354e4d6c53

Contents?: true

Size: 635 Bytes

Versions: 18

Compression:

Stored size: 635 Bytes

Contents

# frozen_string_literal: true

require 'ehbrs/tools/runner'

RSpec.describe ::Ehbrs::Tools::Runner::Videos::Probe do
  let(:source_file) { stub_video_source_file }
  let(:target_dir) { ::Pathname.new(__dir__).expand_path / 'probe_spec_files' }
  let(:target_file) { target_dir / 'fixed.target.yaml' }
  let(:target_content) { target_file.read.gsub('%%PATH%%', source_file.to_path) }

  let(:argv) { %w[videos probe] + [source_file.to_path] }
  let(:runner) { ::Ehbrs::Tools::Runner.create(argv: argv) }

  describe '#run' do
    it do
      expect { runner.run }.to(output(target_content).to_stdout_from_any_process)
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
ehbrs-tools-0.37.0 spec/lib/ehbrs/tools/runner/videos/probe_spec.rb
ehbrs-tools-0.36.0 spec/lib/ehbrs/tools/runner/videos/probe_spec.rb
ehbrs-tools-0.35.1 spec/lib/ehbrs/tools/runner/videos/probe_spec.rb
ehbrs-tools-0.35.0 spec/lib/ehbrs/tools/runner/videos/probe_spec.rb
ehbrs-tools-0.34.0 spec/lib/ehbrs/tools/runner/videos/probe_spec.rb
ehbrs-tools-0.33.0 spec/lib/ehbrs/tools/runner/videos/probe_spec.rb
ehbrs-tools-0.32.0 spec/lib/ehbrs/tools/runner/videos/probe_spec.rb
ehbrs-tools-0.31.1 spec/lib/ehbrs/tools/runner/videos/probe_spec.rb
ehbrs-tools-0.31.0 spec/lib/ehbrs/tools/runner/videos/probe_spec.rb
ehbrs-tools-0.30.0 spec/lib/ehbrs/tools/runner/videos/probe_spec.rb
ehbrs-tools-0.29.0 spec/lib/ehbrs/tools/runner/videos/probe_spec.rb
ehbrs-tools-0.28.3 spec/lib/ehbrs/tools/runner/videos/probe_spec.rb
ehbrs-tools-0.28.2 spec/lib/ehbrs/tools/runner/videos/probe_spec.rb
ehbrs-tools-0.28.1 spec/lib/ehbrs/tools/runner/videos/probe_spec.rb
ehbrs-tools-0.28.0 spec/lib/ehbrs/tools/runner/videos/probe_spec.rb
ehbrs-tools-0.27.0 spec/lib/ehbrs/tools/runner/videos/probe_spec.rb
ehbrs-tools-0.26.0 spec/lib/ehbrs/tools/runner/videos/probe_spec.rb
ehbrs-tools-0.25.1 spec/lib/ehbrs/tools/runner/videos/probe_spec.rb