mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
c971854ea7
The latest version of Capistrano uses Capistrano::VERSION for storing the gem version. This change adds a constant to match this interface for v2.
11 lines
278 B
Ruby
11 lines
278 B
Ruby
require 'capistrano/version'
|
|
|
|
class VersionTest < Test::Unit::TestCase
|
|
def test_version_constant_is_not_nil
|
|
assert_not_nil Capistrano::VERSION
|
|
end
|
|
|
|
def test_version_constant_matches_class_method
|
|
assert_equal Capistrano::VERSION, Capistrano::Version.to_s
|
|
end
|
|
end
|