summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-02-18 19:20:45 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2020-02-19 23:05:17 +0100
commit47c569dac65249f5a08605dfa8e1ddaceb32d871 (patch)
tree04dfa65fcbaf569d50746cd9ef34f71ff8bbb17e /spec
parente9a4dbb494df7c5043a7db9d2880812f9c4e5618 (diff)
downloadbundler-47c569dac65249f5a08605dfa8e1ddaceb32d871.tar.gz
Unfreeze dep hashesfix_dev_deps_hashes
These hashes are actually modified. For example, to exclude some dependencies under jruby. So they should not be frozen. Without this, running `bin/rake spec:deps` from jruby crashes with: ``` rake aborted! FrozenError: can't modify frozen Hash /path/to/bundler/spec/support/rubygems_ext.rb:36:in `dev_setup' /path/to/bundler/Rakefile:29:in `block in <main>' /path/to/bundler/Rakefile:14:in `block in invoke' /path/to/bundler/Rakefile:13:in `invoke' /path/to/bundler/spec/support/rubygems_ext.rb:98:in `gem_load_and_activate' /path/to/bundler/spec/support/rubygems_ext.rb:45:in `gem_load' Tasks: TOP => spec:deps (See full trace by running task with --trace) ```
Diffstat (limited to 'spec')
-rw-r--r--spec/support/rubygems_ext.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/support/rubygems_ext.rb b/spec/support/rubygems_ext.rb
index b177fc690a..01f3b833c9 100644
--- a/spec/support/rubygems_ext.rb
+++ b/spec/support/rubygems_ext.rb
@@ -4,7 +4,7 @@ require_relative "path"
module Spec
module Rubygems
- DEV_DEPS = {
+ DEV_DEPS = { # rubocop:disable Style/MutableConstant
"automatiek" => "~> 0.3.0",
"parallel_tests" => "~> 2.29",
"rake" => "~> 12.0",
@@ -12,9 +12,9 @@ module Spec
"rspec" => "~> 3.8",
"rubocop" => "= 0.77.0",
"rubocop-performance" => "= 1.5.1",
- }.freeze
+ }
- DEPS = {
+ DEPS = { # rubocop:disable Style/MutableConstant
"rack" => "2.0.8",
"rack-test" => "~> 1.1",
"artifice" => "~> 0.6.0",
@@ -25,7 +25,7 @@ module Spec
"builder" => "~> 3.2",
# ruby-graphviz is used by the viz tests
"ruby-graphviz" => ">= 0.a",
- }.freeze
+ }
extend self