Sha256: 264d1fa4c2c3ea9f262b40f4eb298d9a5721f46b4c59cc9a68ebc0a858aa23a8
Contents?: true
Size: 359 Bytes
Versions: 1
Compression:
Stored size: 359 Bytes
Contents
require 'spec_helper' describe ContextController, type: :controller do it 'preloads contexts' do get :index expect(controller.current_context(:locale)).to eq(:en) expect(controller.current_context(:city)).to eq(nil) controller.contexts[:locale].apply(controller, :ru) expect(controller.locale_page_path).to eq('/ru/locale') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
contexts-2.0.0 | spec/controllers/context_controller_spec.rb |