Sha256: 4572bc010e0d08bf71a6935cf65299e0ab499e9afb3b96696fcfa9082e552ae6
Contents?: true
Size: 617 Bytes
Versions: 1
Compression:
Stored size: 617 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), '..', '..', '..', 'lib') require 'test/unit' require 'nitro/builder/rss' class TC_BuildersRss < Test::Unit::TestCase # :nodoc: all include Nitro 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 = RssBuilder.build(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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.20.0 | test/nitro/builder/tc_rss.rb |