Skip to content

Commit 1e51f62

Browse files
authored
Add testing support for Rails 6.1 (#57)
1 parent 73374d9 commit 1e51f62

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
fail-fast: false
99
matrix:
1010
ruby: [2.6, 2.7]
11-
rails: ['5.0', '5.1', '5.2', '6.0']
11+
rails: ['5.0', '5.1', '5.2', '6.0', '6.1']
1212

1313
runs-on: ubuntu-latest
1414
name: Test against Ruby ${{ matrix.ruby }} / Rails ${{ matrix.rails }}

Appraisals

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
appraise "rails-6.1" do
2+
gem "rails", "~> 6.1.0"
3+
end
4+
15
appraise "rails-6.0" do
26
gem "rails", "~> 6.0.3", '>= 6.0.3.2'
37
end

gemfiles/rails_6.1.gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "rails", "~> 6.1.0"
6+
7+
gemspec path: "../"

spec/dummy/config/environments/test.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
if Gem::Version.new(Rails::VERSION::STRING) >= Gem::Version.new('6.1.0')
2+
require 'active_support/core_ext/integer/time'
3+
end
4+
15
# The test environment is used exclusively to run your application's
26
# test suite. You never need to work with it otherwise. Remember that
37
# your test database is "scratch space" for the test suite and is wiped

0 commit comments

Comments
 (0)