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