From ac5254758fa149bf051b60434988302f0509e716 Mon Sep 17 00:00:00 2001 From: Peter Cai <222655+pcai@users.noreply.github.com> Date: Sun, 29 Sep 2024 18:30:12 +0000 Subject: [PATCH] require ruby2_keywords in 2.6 --- .github/workflows/ci.yml | 16 ++++++++-------- test/test_helper.rb | 3 +++ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 01bdc94..8e86026 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,16 +15,16 @@ jobs: gemfile: gemfiles/rails_5_1.gemfile - ruby: "2.5" gemfile: gemfiles/rails_5_2.gemfile - # - ruby: "2.5" - # gemfile: gemfiles/rails_6_0.gemfile - # - ruby: "2.5" - # gemfile: gemfiles/rails_6_1.gemfile + - ruby: "2.5" + gemfile: gemfiles/rails_6_0.gemfile + - ruby: "2.5" + gemfile: gemfiles/rails_6_1.gemfile - ruby: "2.6" gemfile: gemfiles/rails_5_2.gemfile - # - ruby: "2.6" - # gemfile: gemfiles/rails_6_0.gemfile - # - ruby: "2.6" - # gemfile: gemfiles/rails_6_1.gemfile + - ruby: "2.6" + gemfile: gemfiles/rails_6_0.gemfile + - ruby: "2.6" + gemfile: gemfiles/rails_6_1.gemfile - ruby: "2.7" gemfile: gemfiles/rails_5_1.gemfile - ruby: "2.7" diff --git a/test/test_helper.rb b/test/test_helper.rb index 0aaba72..69bd40d 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -6,6 +6,9 @@ # Configure Rails Envinronment ENV["RAILS_ENV"] = "test" + +require "ruby2_keywords" if RUBY_VERSION < "2.7" + require 'rails' require 'rails/test_help'