diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-08-29 10:43:00 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-08-29 10:43:00 +0000 |
commit | 5fdbac21e3b06e0190f12520e9522032b72caa6a (patch) | |
tree | db45b22359fd6890126baf8f29e33427d81496ce /railties | |
parent | 675272dc710799526f92b54a764ed2e6d52b3cda (diff) | |
download | rails-5fdbac21e3b06e0190f12520e9522032b72caa6a.tar.gz rails-5fdbac21e3b06e0190f12520e9522032b72caa6a.tar.bz2 rails-5fdbac21e3b06e0190f12520e9522032b72caa6a.zip |
Railties: info tests passing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4845 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/rails_info_test.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/railties/test/rails_info_test.rb b/railties/test/rails_info_test.rb index 926f254c2e..338b44884e 100644 --- a/railties/test/rails_info_test.rb +++ b/railties/test/rails_info_test.rb @@ -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 '' |