Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 7655fc0b6c7b0593fb73fe1d6b6beddba152f6fe 1 parent 8ac8eb6
@wangjohn wangjohn authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  railties/test/application/rake_test.rb
View
3  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
Please sign in to comment.
Something went wrong with that request. Please try again.