locale_setter 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|