Class: ActionView::TestCase::TestController
- Inherits:
-
Object
- Object
- ActionView::TestCase::TestController
- Defined in:
- lib/workarea/testing/locale_routing_fixes.rb,
lib/workarea/view_test.rb
Overview
This fix allows us to default locale to nil so routes in helper tests can be generated as expected. This is unbelievably shitty and makes me really sad. Details on this can be found here: github.com/rspec/rspec-rails/issues/255
Instance Method Summary collapse
Instance Method Details
#default_url_options(options = {}) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/workarea/testing/locale_routing_fixes.rb', line 8 def (={}) if .key?(:locale) || .key?('locale') else { locale: nil }.merge() end end |