Sha256: bfd9842620a9f153cf7b5ce6977a7f0c0152b9ccc9a279326c7744174ab77682
Contents?: true
Size: 497 Bytes
Versions: 1
Compression:
Stored size: 497 Bytes
Contents
RSpec::Matchers.define :be_a_subset_of do |default_locale_filepath| extend I18nSpec::FailureMessage match do |filepath| locale_file = I18nSpec::LocaleFile.new(filepath) default_locale = I18nSpec::LocaleFile.new(default_locale_filepath) @superset = locale_file.flattened_translations.keys - default_locale.flattened_translations.keys @superset.empty? end failure_for_should do |filepath| "expected #{filepath} to not include :\n- " << @superset.join("\n- ") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
i18n-spec-0.6.0 | lib/i18n-spec/matchers/be_a_subset_of_matcher.rb |