diff options
author | Jeremy Kemper <jeremykemper@gmail.com> | 2014-03-05 10:38:48 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremykemper@gmail.com> | 2014-03-05 10:38:48 -0700 |
commit | 9f84c7bc48dbcea3314943469358badc77b570b4 (patch) | |
tree | 238825fa3198c023afb6545693bfbedff6d917d8 /railties/test | |
parent | 058d3c6183ef6e0e878bea37f4fe3f8f0d6758e2 (diff) | |
parent | 2dd2fcf89673afbcf95240ecebaf34826a195164 (diff) | |
download | rails-9f84c7bc48dbcea3314943469358badc77b570b4.tar.gz rails-9f84c7bc48dbcea3314943469358badc77b570b4.tar.bz2 rails-9f84c7bc48dbcea3314943469358badc77b570b4.zip |
Merge pull request #14101 from sikachu/master-fix-versioning-task
Introduce `Rails.gem_version`
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/version_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/railties/test/version_test.rb b/railties/test/version_test.rb new file mode 100644 index 0000000000..f270d8f0c9 --- /dev/null +++ b/railties/test/version_test.rb @@ -0,0 +1,12 @@ +require 'abstract_unit' + +class VersionTest < ActiveSupport::TestCase + def test_rails_version_returns_a_string + assert Rails.version.is_a? String + end + + def test_rails_gem_version_returns_a_correct_gem_version_object + assert Rails.gem_version.is_a? Gem::Version + assert_equal Rails.version, Rails.gem_version.to_s + end +end |