diff options
author | wangjohn <wangjohn@mit.edu> | 2013-05-31 10:00:58 -0400 |
---|---|---|
committer | wangjohn <wangjohn@mit.edu> | 2013-05-31 19:48:36 -0400 |
commit | 7655fc0b6c7b0593fb73fe1d6b6beddba152f6fe (patch) | |
tree | db036dc035b6fa9c3b5e8232a8904d9fe8d64eb8 /railties/test | |
parent | 8ac8eb66c19d352dde548fc5c9a632ffbb586abe (diff) | |
download | rails-7655fc0b6c7b0593fb73fe1d6b6beddba152f6fe.tar.gz rails-7655fc0b6c7b0593fb73fe1d6b6beddba152f6fe.tar.bz2 rails-7655fc0b6c7b0593fb73fe1d6b6beddba152f6fe.zip |
Fixing a failing railtie test by using the ENV variable to specify a
particular controller to search for in rake routes.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/rake_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/test/application/rake_test.rb b/railties/test/application/rake_test.rb index 00a4ab06aa..cfa5cc1322 100644 --- a/railties/test/application/rake_test.rb +++ b/railties/test/application/rake_test.rb @@ -159,7 +159,8 @@ module ApplicationTests end RUBY - output = Dir.chdir(app_path){ `CONTROLLER=cart rake routes` } + ENV['CONTROLLER'] = 'cart' + output = Dir.chdir(app_path){ `rake routes` } assert_equal "Prefix Verb URI Pattern Controller#Action\ncart GET /cart(.:format) cart#show\n", output end |