require 'spec_helper' describe ContextPreloadController, type: [:controller, :request] do describe '.preload_contexts' do it 'populates contexts' do get '/' expect(controller.current_context(:lang)).to eq(:en) expect(controller.current_context(:city)).to eq(nil) end end end