Skip to content

Commit

Permalink
Merge pull request #149 from sul-dlss/iiif-image
Browse files Browse the repository at this point in the history
Update tests to work with latest version of IIIF Image API gem
  • Loading branch information
taylor-steve authored Dec 9, 2024
2 parents 2b46142 + 98196c2 commit 88ba574
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,22 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['3.2', '3.3']
rails: ['7.2.1', '7.1.4']
ruby: ["3.2", "3.3"]
rails: ["7.2.1", "7.1.4"]
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: bundle install
env:
RAILS_VERSION: ${{ matrix.rails }}
- name: Run tests
run: bundle exec rake
env:
RAILS_VERSION: ${{ matrix.rails }}
ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
- name: Install ImageMagick
run: sudo apt install imagemagick
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: bundle install
env:
RAILS_VERSION: ${{ matrix.rails }}
- name: Run tests
run: bundle exec rake
env:
RAILS_VERSION: ${{ matrix.rails }}
ENGINE_CART_RAILS_OPTIONS: "--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test"
2 changes: 1 addition & 1 deletion spec/controllers/riiif/images_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
'height' => 4000,
'format' => 'JPEG',
'channels' => 'rgb',
'profile' => ['http://iiif.io/api/image/2/level1.json', 'formats' => %w(jpg png)],
'profile' => ['http://iiif.io/api/image/2/level1.json', 'formats' => %w(webp jpg png)],
'protocol' => 'http://iiif.io/api/image'
expect(response.headers['Link']).to eq '<http://iiif.io/api/image/2/level1.json>;rel="profile"'
expect(response.headers['Content-Type']).to eq 'application/ld+json; charset=utf-8'
Expand Down

0 comments on commit 88ba574

Please sign in to comment.