diff options
author | Victor Koronen <koronen@kth.se> | 2015-08-08 16:23:52 +0200 |
---|---|---|
committer | Victor Koronen <koronen@kth.se> | 2015-08-14 12:29:43 +0200 |
commit | 95bb960606a60a45c8acbf91db031b02d77bf5a6 (patch) | |
tree | 83889c72e4109a0f6b140a2d99a226ad68d29e93 /spec | |
parent | 6e9f4baf83508545f395d3221f2c4108abbb638f (diff) | |
download | bundler-95bb960606a60a45c8acbf91db031b02d77bf5a6.tar.gz |
Fix Style/Proc
Diffstat (limited to 'spec')
-rw-r--r-- | spec/bundler/retry_spec.rb | 2 | ||||
-rw-r--r-- | spec/support/sometimes.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/bundler/retry_spec.rb b/spec/bundler/retry_spec.rb index 23e66684..03f74cd5 100644 --- a/spec/bundler/retry_spec.rb +++ b/spec/bundler/retry_spec.rb @@ -12,7 +12,7 @@ describe Bundler::Retry do end it "returns the first valid result" do - jobs = [Proc.new { raise "foo" }, Proc.new { :bar }, Proc.new { raise "foo" }] + jobs = [proc { raise "foo" }, proc { :bar }, proc { raise "foo" }] attempts = 0 result = Bundler::Retry.new(nil, nil, 3).attempt do attempts += 1 diff --git a/spec/support/sometimes.rb b/spec/support/sometimes.rb index 99fc9e94..0ab15d97 100644 --- a/spec/support/sometimes.rb +++ b/spec/support/sometimes.rb @@ -29,7 +29,7 @@ RSpec.configure do |config| end config.after(:suite) do - message = Proc.new do |color, text| + message = proc do |color, text| colored = RSpec::Core::Formatters::ConsoleCodes.wrap(text, color) notification = RSpec::Core::Notifications::MessageNotification.new(colored) RSpec.configuration.formatters.first.message(notification) |