1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00
capistrano/test/version_test.rb
Sasha Gerrand c971854ea7 Consistant Capistrano::VERSION interface
The latest version of Capistrano uses Capistrano::VERSION for storing the gem
version. This change adds a constant to match this interface for v2.
2015-06-17 14:41:54 +02:00

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