2013-01-31 12:42:19 -05:00
|
|
|
require_relative 'helper'
|
|
|
|
|
2013-02-01 11:53:34 -05:00
|
|
|
class TestVersion < Sidetiq::TestCase
|
2013-01-31 12:42:19 -05:00
|
|
|
def test_major
|
|
|
|
assert_instance_of Fixnum, Sidetiq::VERSION::MAJOR
|
|
|
|
end
|
|
|
|
|
|
|
|
def test_minor
|
|
|
|
assert_instance_of Fixnum, Sidetiq::VERSION::MINOR
|
|
|
|
end
|
|
|
|
|
|
|
|
def test_patch
|
|
|
|
assert_instance_of Fixnum, Sidetiq::VERSION::PATCH
|
|
|
|
end
|
|
|
|
|
|
|
|
def test_string
|
|
|
|
assert_equal Sidetiq::VERSION::STRING, [Sidetiq::VERSION::MAJOR,
|
2013-09-16 08:04:13 -04:00
|
|
|
Sidetiq::VERSION::MINOR, Sidetiq::VERSION::PATCH,
|
|
|
|
Sidetiq::VERSION::SUFFIX].compact.join('.')
|
2013-01-31 12:42:19 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|