Skip to content

Commit

Permalink
change the expectation from nil to not existing
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkkwang committed Oct 3, 2022
1 parent 017394b commit 87367c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/lib/iiif_manifest/v3/manifest_factory_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def sequence_rendering

it 'does not have a metadata element' do
allow(book_presenter).to receive(:file_set_presenters).and_return([file_presenter])
expect(result['metadata']).to eq nil
expect(result.key?('metadata')).to be false
end
end

Expand All @@ -269,7 +269,7 @@ def sequence_rendering

it 'has no metadata' do
allow(book_presenter).to receive(:manifest_metadata).and_return(metadata)
expect(result['metadata']).to eq nil
expect(result.key?('metadata')).to be false
end
end

Expand Down Expand Up @@ -396,7 +396,7 @@ def sequence_rendering
expect(result['type']).to eq 'Manifest'
end
it "doesn't build manifests" do
expect(result['manifests']).to eq nil
expect(result.key?('metadata')).to be false
end
it 'builds items array from all the child file sets' do
expect(result['items'].length).to eq 2
Expand All @@ -423,7 +423,7 @@ def sequence_rendering
expect(result['type']).to eq 'Manifest'
end
it "doesn't build manifests" do
expect(result['manifests']).to eq nil
expect(result.key?('metadata')).to be false
end
it 'builds items array from all the child file sets' do
expect(result['items'].length).to eq 1
Expand Down

0 comments on commit 87367c9

Please sign in to comment.