1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rss/maker/base.rb (RSS::Maker::RSSBase#make): require block.

* test/rss/test_maker_{0.9,1.0,2.0}.rb: follow the above change.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kou 2008-06-29 08:38:11 +00:00
parent f6c7804c16
commit 7556f66e9c
5 changed files with 17 additions and 13 deletions

View file

@ -6,8 +6,9 @@ module RSS
class TestMaker20 < TestCase
def test_rss
rss = RSS::Maker.make("2.0")
assert_nil(rss)
assert_raise(LocalJumpError) do
RSS::Maker.make("2.0")
end
rss = RSS::Maker.make("2.0") do |maker|
setup_dummy_channel(maker)