summaryrefslogtreecommitdiffstats
path: root/Gemfile
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-11-03 03:51:15 +0000
committerGo MAEDA <maeda@farend.jp>2022-11-03 03:51:15 +0000
commitf90fd0d236eb35028122013e914076b94b119ad5 (patch)
tree7ed69d483637d80d41dff16cb31dbf38e855b9dd /Gemfile
parent693a8bae50c2c6f1848fa907a1fc841b4110f7e8 (diff)
downloadredmine-f90fd0d236eb35028122013e914076b94b119ad5.tar.gz
redmine-f90fd0d236eb35028122013e914076b94b119ad5.zip
Limit mocha version to < 2.0.0 when Ruby version is < 2.7 to avoid test error "cannot load such file -- ruby2_keywords" (#37883).
Patch by Ko Nagase. git-svn-id: https://svn.redmine.org/redmine/trunk@21945 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Gemfile b/Gemfile
index 71e420967..8cb73293e 100644
--- a/Gemfile
+++ b/Gemfile
@@ -93,7 +93,7 @@ end
group :test do
gem "rails-dom-testing"
- gem 'mocha', '>= 1.4.0'
+ gem 'mocha', (Gem.ruby_version < Gem::Version.new('2.7.0') ? ['>= 1.4.0', '< 2.0.0'] : '>= 1.4.0')
gem 'simplecov', '~> 0.21.2', :require => false
gem "ffi", platforms: [:mingw, :x64_mingw, :mswin]
# For running system tests