raindrops RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Jeremy Evans <code@jeremyevans.net>
To: raindrops@librelist.org
Subject: [PATCH] Fix bad rescue statements in a couple tests
Date: Mon, 27 Jun 2011 10:56:47 -0700	[thread overview]
Message-ID: <20110627175647.GT17517@jeremyevans.local> (raw)
In-Reply-To: <20110627175647.GT17517@jeremyevans.local>

>From 73e34bcd4e0cb29e02b3e2e3bbaa5caee04516fb Mon Sep 17 00:00:00 2001
From: Jeremy Evans <code@jeremyevans.net>
Date: Mon, 27 Jun 2011 10:36:21 -0700
Subject: [PATCH] Fix bad rescue statements in a couple tests

---
 test/test_aggregate_pmq.rb          |    2 +-
 test/test_last_data_recv_unicorn.rb |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/test_aggregate_pmq.rb b/test/test_aggregate_pmq.rb
index 9278cba..7748b4f 100644
--- a/test/test_aggregate_pmq.rb
+++ b/test/test_aggregate_pmq.rb
@@ -2,7 +2,7 @@ require "test/unit"
 require "raindrops"
 pmq = begin
   Raindrops::Aggregate::PMQ
-rescue => LoadError
+rescue LoadError => e
   warn "W: #{e} skipping test"
   false
 end
diff --git a/test/test_last_data_recv_unicorn.rb b/test/test_last_data_recv_unicorn.rb
index 38bdd11..7f06c85 100644
--- a/test/test_last_data_recv_unicorn.rb
+++ b/test/test_last_data_recv_unicorn.rb
@@ -6,7 +6,7 @@ require "net/http"
 $stderr.sync = $stdout.sync = true
 pmq = begin
   Raindrops::Aggregate::PMQ
-rescue => LoadError
+rescue LoadError => e
   warn "W: #{e} skipping test"
   false
 end
-- 
1.7.5



       reply	other threads:[~2011-06-27 17:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-27 17:56 Jeremy Evans [this message]
2011-06-27 18:29 ` [PATCH] Fix bad rescue statements in a couple tests Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/raindrops/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110627175647.GT17517@jeremyevans.local \
    --to=code@jeremyevans.net \
    --cc=raindrops@librelist.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/raindrops.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).