ndd-rspec-rails 0.2.1 → 0.2.2
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/ndd/rspec/rails/matchers/translation_matcher.rb +1 -1
- data/lib/ndd/rspec/rails/version.rb +1 -1
- 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: 55a683df4ad00ab1023522eafa090ca8086e4f69
|
4
|
+
data.tar.gz: d62c66f4c2a802719b31c804ebd0d7160fa67140
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18b3f11077c99ecf60b15ab7f3167fb2d84db19ffe01025c2ba2c5c6388c1e0d30b83501a67c8f4e4b0ae95687fe76657020c59234b42650e6b9755b8f8795f9
|
7
|
+
data.tar.gz: 236df4835e05b9e58400b307c41e06a451183eefc875850fe4fab556bd4a6fed712e4f190980858a1e458dfb8d6b6b22eff1295ab1a7d33bb841e840810de1f8
|
data/CHANGELOG.md
CHANGED
@@ -43,7 +43,7 @@ module Ndd
|
|
43
43
|
# @param key [String] the key of the translation to lookup.
|
44
44
|
# @return [Boolean] true if a translation exists for the given key in the given locale, false otherwise.
|
45
45
|
def translated?(locale, key)
|
46
|
-
I18n.with_locale(locale) { I18n.
|
46
|
+
I18n.with_locale(locale) { I18n.translate!(key, fallback: false) }
|
47
47
|
return true
|
48
48
|
rescue I18n::MissingTranslationData
|
49
49
|
return false
|