summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-05 15:15:04 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-05 15:15:04 +0000
commitd34d3d9597476eb06a5b49f4ce9c358b0d006e3f (patch)
treeea248be6fbb076ecacd3a06467bf9e06e8b8773b /test
parentc9e950b2396427eab7859b0ddd8415e43f86e739 (diff)
downloadruby-d34d3d9597476eb06a5b49f4ce9c358b0d006e3f.tar.gz
ruby-d34d3d9597476eb06a5b49f4ce9c358b0d006e3f.tar.xz
ruby-d34d3d9597476eb06a5b49f4ce9c358b0d006e3f.zip
* lib/rss/{trackback,syndication,dublincore,content}.rb: worked
with ruby 1.6 again. * test/rss/rss-assertions.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/rss/rss-assertions.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/rss/rss-assertions.rb b/test/rss/rss-assertions.rb
index db9c39dd2..ad7da1f6b 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