Sha256: 275c0c687945d79195a4a732d519cd5273013ba723184a4211ed61dba0c53062
Contents?: true
Size: 637 Bytes
Versions: 2
Compression:
Stored size: 637 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', 'CONFIG.rb') require 'test/unit' require 'nitro/helper/rss' class TC_RssHelper < Test::Unit::TestCase # :nodoc: all include Nitro include RssHelper Blog = Struct.new(:title, :body, :to_href) def test_render blogs = [] blogs << Blog.new('Hello1', 'World1', 'uri1'); blogs << Blog.new('Hello2', 'World2', 'uri2'); blogs << Blog.new('Hello3', 'World3', 'uri3'); rss = build_rss(blogs, :link => 'http://www.navel.gr') assert_match %r{<link>http://www.navel.gr/uri1</link>}, rss assert_match %r{<link>http://www.navel.gr/uri2</link>}, rss end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.30.0 | test/nitro/helper/tc_rss.rb |
nitro-0.31.0 | test/nitro/helper/tc_rss.rb |