Skip to content

Commit

Permalink
Improve semantics in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rcpalacio committed Sep 18, 2023
1 parent 916b1cb commit 19c52aa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spec/parsers/mp4_parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,13 @@
end

context "when when magic bytes are present but the 'ftyp' box can't be parsed" do
let(:result) do
let(:io) do
input = [0xFF].pack('N') + 'ftyp' + 'avc1 ' + [0x1].pack('N')
io = StringIO.new(input)
subject.call(io)
StringIO.new(input)
end

it 'should be nil' do
expect(result).to be_nil
expect(subject.call(io)).to be_nil
end
end

Expand Down

0 comments on commit 19c52aa

Please sign in to comment.