diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d610869..612043d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,8 +7,8 @@ jobs: strategy: matrix: os: [ 'ubuntu-latest' ] - ruby: [ "3.0", "2.7", "2.6", "2.5" ] - opal: [ "1.0.3", "1.1.0" ] + ruby: [ "head", "3.0", "2.7", "2.6" ] + opal: [ "~>1.0.0a", "~>1.1.0a", "~>1.3.0a", "~>1.4.0a"] runs-on: ${{ matrix.os }} diff --git a/spec/tilt/opal_spec.rb b/spec/tilt/opal_spec.rb index cbcc498..8dacfde 100644 --- a/spec/tilt/opal_spec.rb +++ b/spec/tilt/opal_spec.rb @@ -21,7 +21,7 @@ template = described_class.new('./spec/fixtures/opal_file.rb', :build=>true) output = template.render expect(output).to include('"hi from opal!"') - expect(output).to include('self.$require("corelib/runtime");') + expect(output).to include('.$require("corelib/runtime");') end it "support :builder option" do @@ -31,7 +31,7 @@ 2.times do output = template.render expect(output.scan(/hi from opal!/).length).to eql(1) - expect(output).not_to include('self.$require("corelib/runtime");') + expect(output).not_to include('.$require("corelib/runtime");') end end end