Skip to content

Commit fca88a3

Browse files
authored
require ruby2_keywords when testing in ruby < 2.7 (#244)
1 parent 94a4122 commit fca88a3

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ jobs:
1515
gemfile: gemfiles/rails_5_1.gemfile
1616
- ruby: "2.5"
1717
gemfile: gemfiles/rails_5_2.gemfile
18-
# - ruby: "2.5"
19-
# gemfile: gemfiles/rails_6_0.gemfile
20-
# - ruby: "2.5"
21-
# gemfile: gemfiles/rails_6_1.gemfile
18+
- ruby: "2.5"
19+
gemfile: gemfiles/rails_6_0.gemfile
20+
- ruby: "2.5"
21+
gemfile: gemfiles/rails_6_1.gemfile
2222
- ruby: "2.6"
2323
gemfile: gemfiles/rails_5_2.gemfile
24-
# - ruby: "2.6"
25-
# gemfile: gemfiles/rails_6_0.gemfile
26-
# - ruby: "2.6"
27-
# gemfile: gemfiles/rails_6_1.gemfile
24+
- ruby: "2.6"
25+
gemfile: gemfiles/rails_6_0.gemfile
26+
- ruby: "2.6"
27+
gemfile: gemfiles/rails_6_1.gemfile
2828
- ruby: "2.7"
2929
gemfile: gemfiles/rails_5_1.gemfile
3030
- ruby: "2.7"

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Repair tests, support ruby-statistics in ruby < 3.0 (https://github.com/zombocom/derailed_benchmarks/pull/241)
77
- Test Rails 7.1 and 7.2 (https://github.com/zombocom/derailed_benchmarks/pull/242)
88
- Switch from dead_end to syntax_suggest (https://github.com/zombocom/derailed_benchmarks/pull/243)
9+
- require `ruby2_keywords` so drb doesn't break in ruby < 2.7 (https://github.com/zombocom/derailed_benchmarks/pull/244)
910

1011
## 2.1.2
1112

test/test_helper.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
# Configure Rails Envinronment
77
ENV["RAILS_ENV"] = "test"
88

9+
10+
require "ruby2_keywords" if RUBY_VERSION < "2.7"
11+
912
require 'rails'
1013
require 'rails/test_help'
1114

0 commit comments

Comments
 (0)