Sha256: 8e6d1a4c2072fee7bb533a14169babefd8da586410c21934423493a590746a1e
Contents?: true
Size: 646 Bytes
Versions: 5
Compression:
Stored size: 646 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), '..', '..', '..', 'lib') 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
5 entries across 5 versions & 1 rubygems