Skip to content

Commit e5ebcff

Browse files
authored
Merge pull request #2391 from rspec/add-ruby-3-preview1
Be able to run ruby 3 preview 1 on the CI with allow_failure on
2 parents 2b24807 + e84682c commit e5ebcff

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ matrix:
4545
- RAILS_VERSION='~> 6.0.0'
4646
- JRUBY_OPT=--dev
4747
- JAVA_OPTS="--add-opens java.base/sun.nio.ch=org.jruby.dist --add-opens java.base/java.io=org.jruby.dist --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.security.cert=ALL-UNNAMED --add-opens=java.base/java.util.zip=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.util.regex=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/javax.crypto=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED"
48+
- rvm: ruby-3.0.0-preview1
49+
env: RAILS_VERSION='~> 6.0.0'
50+
allow_failure: true
4851
- rvm: 2.7.1
4952
env: RAILS_VERSION='~> 6.0.0'
5053
- rvm: 2.6.6

example_app_generator/generate_app.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232

3333
if Rails::VERSION::STRING >= '6'
3434
gsub_file "Gemfile", /.*rails-controller-testing.*/, "gem 'rails-controller-testing', git: 'https://github.com/rails/rails-controller-testing'"
35+
36+
# TODO: To remove when Rails released with https://github.com/rails/rails/pull/40281
37+
append_to_file 'Gemfile', <<-EOT.gsub(/^ +\|/, '')
38+
|gem 'rexml'
39+
EOT
3540
end
3641

3742
if Rails::VERSION::STRING >= '6'

0 commit comments

Comments
 (0)