Sha256: 05ab16624aec75e464984513be34c8fb1f3d63bf66d3ac7c51725b91238dd195
Contents?: true
Size: 672 Bytes
Versions: 3
Compression:
Stored size: 672 Bytes
Contents
require 'spec_helper' class AccessorTest include RailsLocaleDetection::LocaleAccessors end describe RailsLocaleDetection::LocaleAccessors do subject :object do AccessorTest.new end describe '#alternate_locales' do it "returns all available locales minus the current one" do object.current_locale = :en object.alternate_locales.should eq([:fr]) end end describe '#available_locales' do it "shadows I18n.available_locales" do object.available_locales.should eq([:en, :fr]) end end describe '#default_locale' do it "shadows I18n.default locale" do object.default_locale.should eq(:en) end end end
Version data entries
3 entries across 3 versions & 1 rubygems