Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assert_recognizes needs locale param even with controller_test_helper included. #34

Open
megatux opened this issue Sep 20, 2012 · 0 comments

Comments

@megatux
Copy link

megatux commented Sep 20, 2012

Hi, great Gem! Thanks a lot!
This is more like a feature request.
I've required the controller_test_helper so I don't need set the :locale param on my tests (like get :show, etc). That works great. But the assert_recognizes still needs the locale param or it would fail:

    assert_recognizes({:controller => "pages", :action => "brand"}, "brand")

to:

    assert_recognizes({:controller => "pages", :action => "brand", :locale => "en"}, "brand")

or this error occurs:

Failure:
  The recognized options <{"action"=>"brand", "controller"=>"pages", "locale"=>"en"}> did not match <{"action"=>"brand", "controller"=>"pages"}>, difference: <{"locale"=>"en"}>.
  <{"action"=>"brand", "controller"=>"pages"}> expected but was
  <{"action"=>"brand", "controller"=>"pages", "locale"=>"en"}>.

  diff:
  - {"action"=>"brand", "controller"=>"pages"}
  + {"action"=>"brand", "controller"=>"pages", "locale"=>"en"}
  ?                                          ++++++++++++++++
test_should_route_to_brand_actions(PagesControllerTest)

It would be nice if you don't have to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant