aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/rails_info_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/test/rails_info_test.rb')
-rw-r--r--railties/test/rails_info_test.rb22
1 files changed, 3 insertions, 19 deletions
diff --git a/railties/test/rails_info_test.rb b/railties/test/rails_info_test.rb
index b9fb071d23..92e4af25b5 100644
--- a/railties/test/rails_info_test.rb
+++ b/railties/test/rails_info_test.rb
@@ -37,15 +37,9 @@ class InfoTest < ActiveSupport::TestCase
assert_property 'Goodbye', 'World'
end
- def test_framework_version
- assert_property 'Active Support version', ActiveSupport::VERSION::STRING
- end
-
- def test_frameworks_exist
- Rails::Info.frameworks.each do |framework|
- dir = File.dirname(__FILE__) + "/../../" + framework.delete('_')
- assert File.directory?(dir), "#{framework.classify} does not exist"
- end
+ def test_rails_version
+ assert_property 'Rails version',
+ File.read(File.realpath('../../../RAILS_VERSION', __FILE__)).chomp
end
def test_html_includes_middleware
@@ -61,16 +55,6 @@ class InfoTest < ActiveSupport::TestCase
end
protected
- def svn_info=(info)
- Rails::Info.module_eval do
- class << self
- def svn_info
- info
- end
- end
- end
- end
-
def properties
Rails::Info.properties
end