Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ahx/333448 to your computer and use it in GitHub Desktop.

Select an option

Save ahx/333448 to your computer and use it in GitHub Desktop.
From 935d1fe1a01f6b48f84cd1c6dbbe6bbd1318767a Mon Sep 17 00:00:00 2001
From: Andreas Haller <[email protected]>
Date: Tue, 16 Mar 2010 00:04:36 +0100
Subject: [PATCH] dont use Test::Unit::AssertionFailError (its gone in 1.9)
---
koans/edgecase.rb | 2 +-
src/edgecase.rb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/koans/edgecase.rb b/koans/edgecase.rb
index 91d838f..8b18288 100644
--- a/koans/edgecase.rb
+++ b/koans/edgecase.rb
@@ -26,7 +26,7 @@ module EdgeCase
class Sensei
attr_reader :failure, :failed_test
- AssertionError = Test::Unit::AssertionFailedError
+ class AssertionError < Exception; end
def initialize
@pass_count = 0
diff --git a/src/edgecase.rb b/src/edgecase.rb
index 91d838f..8b18288 100644
--- a/src/edgecase.rb
+++ b/src/edgecase.rb
@@ -26,7 +26,7 @@ module EdgeCase
class Sensei
attr_reader :failure, :failed_test
- AssertionError = Test::Unit::AssertionFailedError
+ class AssertionError < Exception; end
def initialize
@pass_count = 0
--
1.7.0+GitX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment