Permalink
Browse files

Fixing a failing railtie test by using the ENV variable to specify a

particular controller to search for in rake routes.
  • Loading branch information...
1 parent 8ac8eb6 commit 7655fc0b6c7b0593fb73fe1d6b6beddba152f6fe @wangjohn wangjohn committed May 31, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 railties/test/application/rake_test.rb
@@ -159,7 +159,8 @@ def test_rake_routes_with_controller_environment
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

0 comments on commit 7655fc0

Please sign in to comment.