aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorwangjohn <wangjohn@mit.edu>2013-05-31 10:00:58 -0400
committerwangjohn <wangjohn@mit.edu>2013-05-31 19:48:36 -0400
commit7655fc0b6c7b0593fb73fe1d6b6beddba152f6fe (patch)
treedb036dc035b6fa9c3b5e8232a8904d9fe8d64eb8 /railties/test
parent8ac8eb66c19d352dde548fc5c9a632ffbb586abe (diff)
downloadrails-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.rb3
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