class ActionView::TestCase::TestController
These fixes allow us to default locale to nil so routes in 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 This combination of monkey patchs are the only thing I could find to cover all cases.
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
Public Instance Methods
default_url_options(options={})
click to toggle source
# File lib/workarea/testing/locale_routing_fixes.rb, line 8 def default_url_options(options={}) if options.key?(:locale) || options.key?('locale') options else { locale: nil }.merge(options) end end