diff options
author | wangjohn <wangjohn@mit.edu> | 2013-06-26 09:09:57 -0700 |
---|---|---|
committer | wangjohn <wangjohn@mit.edu> | 2013-06-24 09:35:15 -0400 |
commit | 3e5dbda5bbcd0fdaa91b63fcfd22076c41b6a6db (patch) | |
tree | 499018c59a4092996afbf4e71fc3869e490af38c /railties/test/application | |
parent | 9dfa926874cf1c3f851fd884761f76957867d2bd (diff) | |
download | rails-3e5dbda5bbcd0fdaa91b63fcfd22076c41b6a6db.tar.gz rails-3e5dbda5bbcd0fdaa91b63fcfd22076c41b6a6db.tar.bz2 rails-3e5dbda5bbcd0fdaa91b63fcfd22076c41b6a6db.zip |
Removing deprecated rake tasks.
The `rake test:recent` and `rake test:uncommitted` tasks were
deprecated and are now being removed.
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/rake_test.rb | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/railties/test/application/rake_test.rb b/railties/test/application/rake_test.rb index 746ebdaa35..8e5310afee 100644 --- a/railties/test/application/rake_test.rb +++ b/railties/test/application/rake_test.rb @@ -101,45 +101,6 @@ module ApplicationTests Dir.chdir(app_path){ `rake stats` } end - def test_rake_test_uncommitted_always_find_git_in_parent_dir - return "FIXME :'(" - app_name = File.basename(app_path) - app_dir = File.dirname(app_path) - moved_app_name = app_name + '_moved' - - Dir.chdir(app_dir) do - # Go from "./app/" to "./app/app_moved" - FileUtils.mv(app_name, moved_app_name) - FileUtils.mkdir(app_name) - FileUtils.mv(moved_app_name, app_name) - # Initialize the git repository and start the test. - Dir.chdir(app_name) do - `git init` - Dir.chdir(moved_app_name){ `rake db:migrate` } - silence_stderr { Dir.chdir(moved_app_name) { `rake test:uncommitted` } } - assert_equal 0, $?.exitstatus - end - end - end - - def test_rake_test_uncommitted_fails_with_no_scm - Dir.chdir(app_path){ `rake db:migrate` } - Dir.chdir(app_path) do - silence_stderr { `rake test:uncommitted` } - assert_equal 1, $?.exitstatus - end - end - - def test_rake_test_deprecation_messages - Dir.chdir(app_path){ `rails generate scaffold user name:string` } - Dir.chdir(app_path){ `rake db:migrate` } - - %w(recent uncommitted).each do |test_suit_name| - output = Dir.chdir(app_path) { `rake test:#{test_suit_name} 2>&1` } - assert_match(/DEPRECATION WARNING: `rake test:#{test_suit_name}` is deprecated/, output) - end - end - def test_rake_routes_calls_the_route_inspector app_file "config/routes.rb", <<-RUBY Rails.application.routes.draw do |