diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-18 09:03:36 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-18 09:03:36 +0000 |
commit | 3a55515ee8f3ca410adba6eea0b043dd6dccd242 (patch) | |
tree | 7c4c3b1443c7b1c21929fa58aa3eaab332b3b0b4 /lib/rss/rss.rb | |
parent | eb8598146dcaa23230deceddff91e862e26d1b0f (diff) |
* lib/rss/rss.rb: fixed typo: except -> expect
* lib/rss/parser.rb: ditto.
* test/rss/rss-assertions.rb: ditto.
* test/rss/test_parser.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/rss.rb')
-rw-r--r-- | lib/rss/rss.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb index 3ef5db1866..d24a387fe1 100644 --- a/lib/rss/rss.rb +++ b/lib/rss/rss.rb @@ -86,13 +86,15 @@ module RSS end end - class NotExceptedTagError < InvalidRSSError + class NotExpectedTagError < InvalidRSSError attr_reader :tag, :parent def initialize(tag, parent) @tag, @parent = tag, parent super("tag <#{tag}> is not expected in tag <#{parent}>") end end + # For backward compatibility :X + NotExceptedTagError = NotExpectedTagError class NotAvailableValueError < InvalidRSSError attr_reader :tag, :value, :attribute @@ -868,7 +870,7 @@ EOC end if !tags.nil? and !tags.empty? - raise NotExceptedTagError.new(tag, tag_name) + raise NotExpectedTagError.new(tag, tag_name) end end |