提交 5fdbac21 编写于 作者: J Jeremy Kemper

Railties: info tests passing

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4845 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 675272dc
$:.unshift File.dirname(__FILE__) + "/../lib"
$:.unshift File.dirname(__FILE__) + "/../builtin/rails_info"
$:.unshift File.dirname(__FILE__) + "/../../activesupport/lib"
require 'test/unit'
require 'active_support'
require 'rails_info'
module Rails
class Info; end
end
class InfoTest < Test::Unit::TestCase
def setup
Rails.send :remove_const, :Info
silence_warnings { load 'rails_info.rb' }
silence_warnings { load 'rails/info.rb' }
end
def test_edge_rails_revision_not_set_when_svn_info_is_empty
Rails::Info.property 'Test that this will not be defined' do
Rails::Info.edge_rails_revision ''
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册