locale_setter 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/locale_setter/user.rb +1 -1
- data/lib/locale_setter/version.rb +1 -1
- data/spec/locale/user_spec.rb +2 -2
- metadata +1 -1
data/lib/locale_setter/user.rb
CHANGED
data/spec/locale/user_spec.rb
CHANGED
@@ -13,8 +13,8 @@ describe 'LocaleSetter::User' do
|
|
13
13
|
end
|
14
14
|
|
15
15
|
it "only tries current_user if it offers a locale" do
|
16
|
-
|
17
|
-
LocaleSetter::User.for(
|
16
|
+
class NoLocaleUser; end
|
17
|
+
LocaleSetter::User.for(NoLocaleUser.new).should_not be
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|