File: test_version.rb

package info (click to toggle)
ruby-pathname2 1.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 336 kB
  • sloc: ruby: 2,037; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 500 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_Pathname_Version < Test::Unit::TestCase
  test "version is set to expected value" do
    assert_equal('1.8.4', Pathname::VERSION)
  end

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