Skip to content

Commit

Permalink
Add TruffleRuby head to CI
Browse files Browse the repository at this point in the history
This is an clean version of #118 against current master head.  Thanks to @eregon for the original submission
  • Loading branch information
petergoldstein committed Feb 10, 2022
1 parent f013043 commit cb1ad7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
- "3.1"
- ruby-head
- jruby-9.3
- truffleruby-head
steps:
- uses: actions/checkout@v1
- name: Set up Ruby
Expand Down
13 changes: 6 additions & 7 deletions spec/prawn_manual_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
require 'digest/sha2'

MANUAL_HASH =
case RUBY_ENGINE
when 'ruby'
'fbc894c1e3645b43d9d113de812f00015cf01f5dc408be6b67ab69d62f719a92743534b8538a7eb11f516ee88ea647ca3dddfcc8f688c62701ff63aaa84239fe'
when 'jruby'
'51e6da9770b57e28f795e833ead8d981dd8867cfed90462c416c8e7dbfd1ae1fc7a69ddd98004aa0c2f77b5477902bb8da1bb2ecdffa09c3d8af6196ccaaf154'
end
{
'ruby' => 'fbc894c1e3645b43d9d113de812f00015cf01f5dc408be6b67ab69d62f719a92743534b8538a7eb11f516ee88ea647ca3dddfcc8f688c62701ff63aaa84239fe',
'jruby' => '51e6da9770b57e28f795e833ead8d981dd8867cfed90462c416c8e7dbfd1ae1fc7a69ddd98004aa0c2f77b5477902bb8da1bb2ecdffa09c3d8af6196ccaaf154',
'truffleruby' => '2d001a18e27582cce60a6610ca0239de96e7413b0c2a657af5ef364cdc793f3ecd22fbf0ca88bd33cbc24f08cbf0f055cc24a9c2661087047b8ddd14c4554fa5'
}.freeze

RSpec.describe Prawn do
describe 'manual' do
Expand All @@ -27,7 +26,7 @@

hash = Digest::SHA512.hexdigest(s)

expect(hash).to eq MANUAL_HASH
expect(hash).to eq MANUAL_HASH[RUBY_ENGINE]
end
end
end

0 comments on commit cb1ad7f

Please sign in to comment.