Sha256: 5d8b0b1cc3dc565c1d6a54e1ca2a2fb73eceb26462e46b48f52c529726277b40

Contents?: true

Size: 679 Bytes

Versions: 1

Compression:

Stored size: 679 Bytes

Contents

$:.unshift File.join(File.dirname(__FILE__), '..', '..', '..', 'lib')

require 'test/unit'
require 'nitro/builder/atom'

class TestCaseBuildersAtom < Test::Unit::TestCase # :nodoc: all
	include Nitro
	
	Blog = Struct.new(:title, :body, :view_uri, :author)

	def test_render
=begin
		blogs = []
		blogs << Blog.new('Hello1', 'World1', 'uri1', 'George');
		blogs << Blog.new('Hello2', 'World2', 'uri2', 'Stella');
		blogs << Blog.new('Hello3', 'World3', 'uri3', 'Renos');

		rss = AtomBuilder.build(blogs, :link => 'http://www.navel.gr')
=end
		# 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.19.0 test/nitro/builder/tc_atom.rb