1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove unused code

This commit is contained in:
Rafael Mendonça França 2014-09-25 16:20:31 -03:00
parent 2922f63039
commit 64fc8963b9
2 changed files with 1 additions and 23 deletions

View file

@ -22,17 +22,6 @@ module Rails
rescue Exception
end
def frameworks
%w( active_record action_pack action_view action_mailer active_support active_model )
end
def framework_version(framework)
if Object.const_defined?(framework.classify)
require "#{framework}/version"
framework.classify.constantize.version.to_s
end
end
def to_s
column_width = properties.names.map {|name| name.length}.max
info = properties.map do |name, value|

View file

@ -42,17 +42,6 @@ class InfoTest < ActiveSupport::TestCase
File.read(File.realpath('../../../RAILS_VERSION', __FILE__)).chomp
end
def test_framework_version
assert_property 'Active Support version', ActiveSupport.version.to_s
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
end
def test_html_includes_middleware
Rails::Info.module_eval do
property 'Middleware', ['Rack::Lock', 'Rack::Static']