From ec92d8440fa51aea40de1567eed7974422bff000 Mon Sep 17 00:00:00 2001 From: Sam Ruby Date: Fri, 3 May 2013 10:37:22 -0400 Subject: Add a test case for comparing Rails versions https://github.com/rails/rails/commit/558d402472b49c4c99bf6753d341d7aef2e25dd4 --- railties/test/rails_info_test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'railties/test') diff --git a/railties/test/rails_info_test.rb b/railties/test/rails_info_test.rb index 5b9088cb64..44a5fd1904 100644 --- a/railties/test/rails_info_test.rb +++ b/railties/test/rails_info_test.rb @@ -37,6 +37,11 @@ class InfoTest < ActiveSupport::TestCase assert_property 'Goodbye', 'World' end + def test_rails_version + assert_property 'Rails version', + File.read(File.realpath('../../../RAILS_VERSION', __FILE__)).chomp + end + def test_framework_version assert_property 'Active Support version', ActiveSupport.version.to_s end -- cgit v1.2.3