initial import
[ruby-cruxutils.git] / test / test_comments.rb
1 require "test/unit"
2 require "cruxutils"
3
4 class TestComments < Test::Unit::TestCase
5         def setup
6                 @port = CruxUtils::Port.new(File.dirname(__FILE__) + "/valgrind")
7         end
8
9         def test_comments
10                 assert_equal("An open-source memory debugger for x86-GNU/Linux",
11                              @port.description)
12                 assert_equal("http://valgrind.org", @port.url)
13                 assert_equal("Tilman Sauerbeck, tilman at code-monkey dot de",
14                              @port.maintainer)
15                 assert_equal("", @port.packager)
16                 assert_equal(["foo", "bar"], @port.dependencies)
17                 assert_equal("valgrind", @port.name)
18                 assert_equal("3.1.0", @port.version)
19                 assert_equal("1", @port.release)
20                 assert_equal(["http://$name.org/downloads/$name-$version.tar.bz2"],
21                              @port.source)
22         end
23 end