Skip to content

Commit

Permalink
revert tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesPurvis committed Oct 21, 2024
1 parent 38b5c56 commit 8a836b2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spec/ffmpeg/transcoder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,15 @@ module FFMPEG
end

it "should transcode the movie with progress given an awesome movie" do
output_file = "#{tmp_path}/awesome_#{SecureRandom.urlsafe_base64}.flv"
FileUtils.rm_f output_file
FileUtils.rm_f "#{tmp_path}/awesome.flv"

transcoder = Transcoder.new(movie, output_file)
transcoder = Transcoder.new(movie, "#{tmp_path}/awesome.flv")
progress_updates = []
transcoder.run { |progress| progress_updates << progress }
expect(transcoder.encoded).to be_valid
expect(progress_updates).to include(0.0, 1.0)
expect(progress_updates.length).to be >= 3
expect(File.exist?(output_file)).to be_truthy
expect(File.exist?("#{tmp_path}/awesome.flv")).to be_truthy
end

it "should transcode the movie with EncodingOptions" do
Expand Down

0 comments on commit 8a836b2

Please sign in to comment.