Blob Blame History Raw
From 3c07872569e3e55a6baf68b6fdaa4a72e74d51c8 Mon Sep 17 00:00:00 2001
From: Ken Dreyer <ktdreyer@ktdreyer.com>
Date: Wed, 4 Sep 2013 21:26:33 -0600
Subject: [PATCH 2/5] make tinder gem optional for test suite

Fedora does not yet have a rubygem-tinder package. Instead of bailing
out when tinder is missing, just print a warning and move on.

When Fedora does get a tinder package, we can drop this patch.
---
 test/exception_notifier/campfire_notifier_test.rb | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/test/exception_notifier/campfire_notifier_test.rb b/test/exception_notifier/campfire_notifier_test.rb
index 569936e..d6df9d0 100644
--- a/test/exception_notifier/campfire_notifier_test.rb
+++ b/test/exception_notifier/campfire_notifier_test.rb
@@ -1,5 +1,9 @@
 require 'test_helper'
-require 'tinder'
+begin
+  require 'tinder'
+rescue LoadError
+  warn "warning: tinder gem not found; skipping CampfireNotifierTest"
+else
 
 class CampfireNotifierTest < ActiveSupport::TestCase
 
@@ -98,3 +102,5 @@ class CampfireNotifierTest < ActiveSupport::TestCase
     StandardError.new('my custom error')
   end
 end
+
+end
-- 
2.4.3