Skip to content

Commit

Permalink
Update tests to check more specific content for annotation and canvas…
Browse files Browse the repository at this point in the history
… representations
  • Loading branch information
cbeer committed Jun 23, 2017
1 parent 15f199e commit 54441f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/integration/purl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
it 'renders the json for manifest' do
visit "/#{@manifest_object}/iiif/canvas/bc854fy5899_1.json"
json_body = JSON.parse(page.body)
expect(json_body['label']).to eq('John Wyclif and his followers, Tracts in Middle English')
expect(json_body['label']).to eq('Page 1')
end
it 'renders nil for a non-manifest' do
visit "/#{@file_object}/iiif/canvas/bc854fy5899_fdsa.json"
Expand All @@ -58,7 +58,7 @@
it 'renders the json for manifest' do
visit "/#{@manifest_object}/iiif/annotation/bc854fy5899_1.json"
json_body = JSON.parse(page.body)
expect(json_body['label']).to eq('John Wyclif and his followers, Tracts in Middle English')
expect(json_body['motivation']).to eq('sc:painting')
end
it 'renders nil for a non-manifest' do
visit "/#{@file_object}/iiif/annotation/bc854fy5899_fdsa.json"
Expand Down

0 comments on commit 54441f6

Please sign in to comment.