Sha256: c148de5b8ebbc36c952253b2a2a3323ca4af527fa0b7441f4010affa622b5fa5
Contents?: true
Size: 561 Bytes
Versions: 1
Compression:
Stored size: 561 Bytes
Contents
require 'spec_helper' describe 'LocaleSetter::User' do describe '#for' do it "ignores a blank stored locale" do blank = OpenStruct.new({:locale => ""}) LocaleSetter::User.for(blank).should_not be end it "ignores a stored locale that is not available" do invalid = OpenStruct.new({:locale => "woof"}) LocaleSetter::User.for(invalid).should_not be end it "only tries current_user if it offers a locale" do class NoLocaleUser; end LocaleSetter::User.for(NoLocaleUser.new).should_not be end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
locale_setter-0.1.1 | spec/locale/user_spec.rb |