acts_as_localized 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/acts_as_localized.rb +1 -1
- data/lib/acts_as_localized/version.rb +1 -1
- data/test/acts_as_localized_test.rb +7 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cdd5e0db66bba1dca59e9c6e855781b4a7d72ea
|
4
|
+
data.tar.gz: bd6fd761d5a83ed38c452d2522f670ddc13f1f99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d57a97cefac3576c5d806c14786b05a1530920d9f22fd2f7aac5658248ec7acc9f8243c80d1b510430ab671b2c58f6a42dfef898c64a1f8b23bbc4510c5ae08
|
7
|
+
data.tar.gz: 2f33bf32d46348912f49d278dfce4d9d5a125f9730ffb70b1d6b014662e5bed67915e72db97cbb1f26d825cf513a9a9cd994e1019d9a27e6a9fdbec275ace76a
|
data/lib/acts_as_localized.rb
CHANGED
@@ -58,6 +58,13 @@ class ActsAsLocalizedTest < MiniTest::Test
|
|
58
58
|
assert_equal 'content EN', model.attr
|
59
59
|
I18n.locale = :fr
|
60
60
|
assert_equal 'content FR', model.attr
|
61
|
+
|
62
|
+
begin
|
63
|
+
I18n.locale = :invalid
|
64
|
+
model.attr
|
65
|
+
rescue => e
|
66
|
+
assert e.is_a?(NoMethodError)
|
67
|
+
end
|
61
68
|
end
|
62
69
|
|
63
70
|
end
|