Skip to content

Commit

Permalink
Merge pull request #682 from rails/rm-fix-test
Browse files Browse the repository at this point in the history
Fix tests
  • Loading branch information
rafaelfranca authored Sep 21, 2022
2 parents 5c70765 + 6c6ca77 commit 828c875
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [ '2.7', '3.0.2', 'head' ]
ruby: [ '2.7', '3.0.2', '3.1', 'head' ]
rails: [ '6.0', '6.1', '7.0', 'edge' ]
exclude:
- ruby: '3.1'
rails: '6.0'
- ruby: '3.1'
rails: '6.1'

env:
RAILS_VERSION: ${{ matrix.rails }}
Expand Down
4 changes: 3 additions & 1 deletion test/support/acceptance_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -659,12 +659,14 @@ def exec_name
end

test "custom bundle path" do
skip if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.1.0") && ENV["RAILS_VERSION"] == "7.0"

bundle_path = app.path(".bundle/#{Bundler.ruby_scope}")
bundle_path.dirname.mkpath

FileUtils.cp_r "#{app.gem_home}/", bundle_path.to_s

app.run! "bundle install --path .bundle --clean --prefer-local"
app.run! "bundle install --path .bundle --local"

assert_speedup do
2.times { assert_success "bundle exec rails runner ''" }
Expand Down

0 comments on commit 828c875

Please sign in to comment.