File: test_version.rb

package info (click to toggle)
ruby-pathname2 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 336 kB
  • sloc: ruby: 2,035; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 503 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
########################################################################
# test_version.rb
#
# Universal test file that tests for the proper version number.
########################################################################
require 'pathname2'
require 'test-unit'

class TC_Pathname2_Version < Test::Unit::TestCase
  test "version is set to expected value" do
    assert_equal('2.0.0', Pathname2::VERSION)
  end

  test "version is frozen" do
    assert_true(Pathname2::VERSION.frozen?)
  end
end