mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
Railties: info tests passing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4845 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -1,16 +1,20 @@
|
||||
$:.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 ''
|
||||
|
||||
Reference in New Issue
Block a user