Permalink
Browse files

Merge pull request #10809 from wangjohn/fix_failing_railtie_test

Fixing a failing railtie test by wrapping the command inside of sh -c
  • Loading branch information...
2 parents a6fe33d + 7655fc0 commit 2767f833841ea18aaa50d2bff3465310d3e0afac @guilleiguaran guilleiguaran committed Jun 3, 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 2767f83

Please sign in to comment.