From 3d8fa5556164f3aa2f6f1733ffe4a96fc4f33ed8 Mon Sep 17 00:00:00 2001 From: kou Date: Mon, 5 Jul 2004 15:15:04 +0000 Subject: * lib/rss/{trackback,syndication,dublincore,content}.rb: worked with ruby 1.6 again. * test/rss/rss-assertions.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rss/rss-assertions.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/rss/rss-assertions.rb') diff --git a/test/rss/rss-assertions.rb b/test/rss/rss-assertions.rb index db9c39dd28..ad7da1f6b4 100644 --- a/test/rss/rss-assertions.rb +++ b/test/rss/rss-assertions.rb @@ -1,4 +1,16 @@ # -*- tab-width: 2 -*- vim: ts=2 +module Test + module Unit + module Assertions + # For backward compatibility + unless instance_methods.include?("assert_raise") + def assert_raise(*args, &block) + assert_raises(*args, &block) + end + end + end + end +end module RSS module Assertions -- cgit v1.2.3