Sha256: 9fa0809dd2c6517d58ec16f8e0156d158ecbf1e1aa679312c6f5b0db54906ef8
Contents?: true
Size: 519 Bytes
Versions: 1
Compression:
Stored size: 519 Bytes
Contents
require 'spec_helper' describe RailsLocaleDetection::ControllerMethods do let(:request) { MockRequest.new } subject(:controller) { MockController.new(request) } it 'provides a blank user locale method' do expect(controller.user_locale).to be_nil end it 'should provide a detect locale method' do expect(controller.class).to respond_to(:detect_locale) end it 'should add a before filter' do expect(controller.class.before_filters).to eq([[RailsLocaleDetection::LocaleDetector]]) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_locale_detection-2.0.0 | spec/rails_locale_detection/controller_methods_spec.rb |