summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-08 12:58:24 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-08 15:36:47 +0200
commitf38ebff92fb4421ac4dcca752dc9a0047dedfc9f (patch)
treec0ac8662c80c5b1bdee361e4113ece232158fdce
parentd8cf7d287359a71733a5fff5be60d53cbfcc02b0 (diff)
downloadbundler-f38ebff92fb4421ac4dcca752dc9a0047dedfc9f.tar.gz
Remove unnecessary begin-end block
And freeze the resulting hash to appease rubocop.
-rw-r--r--spec/support/rubygems_ext.rb28
1 files changed, 13 insertions, 15 deletions
diff --git a/spec/support/rubygems_ext.rb b/spec/support/rubygems_ext.rb
index 2f3d252865..1a2588f30a 100644
--- a/spec/support/rubygems_ext.rb
+++ b/spec/support/rubygems_ext.rb
@@ -6,21 +6,19 @@ require "fileutils"
module Spec
module Rubygems
- DEPS = begin
- {
- # artifice doesn't support rack 2.x now.
- "rack" => "< 2.0",
- "rack-test" => "~> 1.1",
- "artifice" => "~> 0.6.0",
- "compact_index" => "~> 0.11.0",
- "sinatra" => "~> 1.4.7",
- # Rake version has to be consistent for tests to pass
- "rake" => "12.3.2",
- "builder" => "~> 3.2",
- # ruby-graphviz is used by the viz tests
- "ruby-graphviz" => nil,
- }
- end
+ DEPS = {
+ # artifice doesn't support rack 2.x now.
+ "rack" => "< 2.0",
+ "rack-test" => "~> 1.1",
+ "artifice" => "~> 0.6.0",
+ "compact_index" => "~> 0.11.0",
+ "sinatra" => "~> 1.4.7",
+ # Rake version has to be consistent for tests to pass
+ "rake" => "12.3.2",
+ "builder" => "~> 3.2",
+ # ruby-graphviz is used by the viz tests
+ "ruby-graphviz" => nil,
+ }.freeze
def self.setup
Gem.clear_paths