Sha256: ac408581643dceec584ca576d5c58d74c36ca7d6aa17d10e48e3d486d6b06132

Contents?: true

Size: 433 Bytes

Versions: 4

Compression:

Stored size: 433 Bytes

Contents

require 'spec_helper'

describe RailsLocaleDetection do
  describe 'backwards compatility' do
    it 'should be possible to configure using the previous module name' do
      expect(Rails::LocaleDetection).to respond_to(:config)
    end
  end

  describe '.locale_expiry' do
    it "is set to 3 months by default" do
      RailsLocaleDetection.config do |c|
        expect(c.locale_expiry).to eq(3.months)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_locale_detection-2.3.0 spec/rails_locale_detection/config_spec.rb
rails_locale_detection-2.2.0 spec/rails_locale_detection/config_spec.rb
rails_locale_detection-2.1.0 spec/rails_locale_detection/config_spec.rb
rails_locale_detection-2.0.0 spec/rails_locale_detection/config_spec.rb