diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-03-04 18:28:06 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-03-04 19:25:29 +0100 |
commit | d88d2b4e1a46706a14c8eb821c76aab2775209ff (patch) | |
tree | 5a9c4a3eb9265efa1dc488b403b461272695169f /spec/support/matchers.rb | |
parent | c936f74cddbaa7b1cddd9edbce8c8e947da11aa8 (diff) | |
download | bundler-d88d2b4e1a46706a14c8eb821c76aab2775209ff.tar.gz |
Auto-correct `Style/RescueStandardError` offenses
Diffstat (limited to 'spec/support/matchers.rb')
-rw-r--r-- | spec/support/matchers.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/matchers.rb b/spec/support/matchers.rb index 8f0c1e5f91..fb124b30cc 100644 --- a/spec/support/matchers.rb +++ b/spec/support/matchers.rb @@ -152,7 +152,7 @@ module Spec version_const = name == "bundler" ? "Bundler::VERSION" : Spec::Builders.constantize(name) begin run! "require '#{name}.rb'; puts #{version_const}", *groups - rescue => e + rescue StandardError => e next "#{name} is not installed:\n#{indent(e)}" end last_command.stdout.gsub!(/#{MAJOR_DEPRECATION}.*$/, "") @@ -167,7 +167,7 @@ module Spec begin source_const = "#{Spec::Builders.constantize(name)}_SOURCE" run! "require '#{name}/source'; puts #{source_const}", *groups - rescue + rescue StandardError next "#{name} does not have a source defined:\n#{indent(e)}" end last_command.stdout.gsub!(/#{MAJOR_DEPRECATION}.*$/, "") @@ -193,7 +193,7 @@ module Spec puts "WIN" end R - rescue => e + rescue StandardError => e next "checking for #{name} failed:\n#{e}" end next if last_command.stdout == "WIN" |