mirror of
https://github.com/endofunky/sidetiq.git
synced 2022-11-09 13:53:30 -05:00
21 lines
474 B
Ruby
21 lines
474 B
Ruby
require_relative 'helper'
|
|
|
|
class TestVersion < Sidetiq::TestCase
|
|
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,
|
|
Sidetiq::VERSION::MINOR, Sidetiq::VERSION::PATCH].compact.join('.')
|
|
end
|
|
end
|
|
|