Sha256: d0cdca81c3325dbc2908cf632b3bf47bf326f68d66da6411579bc23f7ccef9a8
Contents?: true
Size: 422 Bytes
Versions: 2
Compression:
Stored size: 422 Bytes
Contents
class MockRequest include HttpAcceptLanguage attr_accessor :env def initialize @env = {'HTTP_ACCEPT_LANGUAGE' => ''} end end class MockController include Rails::LocaleDetection attr_accessor :request, :params, :cookies, :default_url_options def initialize(request) @request = request @cookies = ActionDispatch::Cookies::CookieJar.new @default_url_options = @params = {} end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_locale_detection-1.1.0 | spec/support/mock.rb |
rails_locale_detection-1.0.0 | spec/support/mock.rb |