diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2019-06-18 01:09:31 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2019-06-18 01:09:31 -0600 |
| commit | 7d936a5bb777adcc853d6889b0e380ad64e4034f (patch) | |
| tree | 9ad73594ca5214e6ddb91b2d1b8811330b2575dc /spec/video_spec.rb | |
| parent | 1f434ff4085cc264e286e134e736e116df313e5f (diff) | |
introduce have_size matcher in test suite
Diffstat (limited to 'spec/video_spec.rb')
| -rw-r--r-- | spec/video_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/video_spec.rb b/spec/video_spec.rb index b23edcfb..adc319e5 100644 --- a/spec/video_spec.rb +++ b/spec/video_spec.rb @@ -20,7 +20,7 @@ describe 'Asciidoctor::PDF::Converter - Image' do pdf = PDF::Reader.new to_file annotations = get_annotations pdf, 1 - (expect annotations.size).to eql 1 + (expect annotations).to have_size 1 link_annotation = annotations[0] (expect link_annotation[:Subtype]).to eql :Link (expect link_annotation[:A][:URI]).to eql %(https://www.youtube.com/watch?v=#{video_id}) @@ -37,7 +37,7 @@ describe 'Asciidoctor::PDF::Converter - Image' do pdf = PDF::Reader.new to_file annotations = get_annotations pdf, 1 - (expect annotations.size).to eql 1 + (expect annotations).to have_size 1 link_annotation = annotations[0] (expect link_annotation[:Subtype]).to eql :Link (expect link_annotation[:A][:URI]).to eql %(https://vimeo.com/#{video_id}) |
