Blame 0003-make-pigeon-carrier-gem-optional-for-test-suite.patch

3d95072
From 215553d18818273d141058a736713be00f62a766 Mon Sep 17 00:00:00 2001
319e3c3
From: Ken Dreyer <ktdreyer@ktdreyer.com>
319e3c3
Date: Tue, 26 May 2015 10:53:34 -0600
3d95072
Subject: [PATCH 3/5] make pigeon-carrier gem optional for test suite
319e3c3
319e3c3
Fedora does not yet have a rubygem-pigeon-carrier package. Instead of
319e3c3
bailing out when pigeon-carrier is missing, just print a warning and
319e3c3
move on.
319e3c3
319e3c3
When Fedora does get a pigeon-carrier package, we can drop this patch.
319e3c3
---
319e3c3
 test/exception_notifier/irc_notifier_test.rb | 8 +++++++-
319e3c3
 1 file changed, 7 insertions(+), 1 deletion(-)
319e3c3
319e3c3
diff --git a/test/exception_notifier/irc_notifier_test.rb b/test/exception_notifier/irc_notifier_test.rb
3d95072
index 910b63f..88f8517 100644
319e3c3
--- a/test/exception_notifier/irc_notifier_test.rb
319e3c3
+++ b/test/exception_notifier/irc_notifier_test.rb
319e3c3
@@ -1,5 +1,9 @@
319e3c3
 require 'test_helper'
319e3c3
-require 'carrier-pigeon'
319e3c3
+begin
319e3c3
+  require 'carrier-pigeon'
319e3c3
+rescue LoadError
319e3c3
+  warn 'warning: carrier-pigeon gem not found; skipping IrcNotifierTest'
319e3c3
+else
319e3c3
 
319e3c3
 class IrcNotifierTest < ActiveSupport::TestCase
319e3c3
 
3d95072
@@ -119,3 +123,5 @@ class IrcNotifierTest < ActiveSupport::TestCase
3d95072
     StandardError.new('my custom error')
319e3c3
   end
319e3c3
 end
319e3c3
+
319e3c3
+end
319e3c3
-- 
3d95072
2.4.3
319e3c3