Skip to content

Commit

Permalink
video processor audio attribute tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jwellnit committed Sep 12, 2024
1 parent 15373b1 commit 4532a03
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions spec/services/spot/video_processor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,26 @@
end
end
end

describe 'audio_attributes' do
context 'the directives include audio attributes' do
let(:directives) { { label: :thumb, format: "mp4", url: 'http://localhost:8983/fedora/rest/dev/1234/thumbnail', audio: 'directive_audio' } }

it 'returns the directive audio attributes' do
expect(subject.audio_attributes).to eq('directive_audio')
end
end

context 'the directives do not include audio attributes' do
let(:directives) { { label: :thumb, format: "mp4", url: 'http://localhost:8983/fedora/rest/dev/1234/thumbnail' } }

before do
allow(subject.config).to receive(:audio_attributes).and_return("config_audio")
end

it 'returns the config audio attributes' do
expect(subject.audio_attributes).to eq('config_audio')
end
end
end
end

0 comments on commit 4532a03

Please sign in to comment.