Sha256: 9284e9ce6e59485c8d99fa343e86ad126abd3c63c20374b9abcc4093ed688e0a
Contents?: true
Size: 323 Bytes
Versions: 2
Compression:
Stored size: 323 Bytes
Contents
RSpec::Matchers.define :be_parseable do extend I18nSpec::FailureMessage match do |actual| @locale_file = I18nSpec::LocaleFile.new(actual) @locale_file.is_parseable? end failure_for_should do |filepath| "expected #{filepath} to be parseable but got :\n- #{@locale_file.errors[:unparseable]}" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
i18n-spec-0.6.0 | lib/i18n-spec/matchers/be_parseable_matcher.rb |
i18n-spec-0.5.2 | lib/i18n-spec/matchers/be_parseable_matcher.rb |