Sha256: 841b4de637832d70756e9df620f36de16127e9064eb41aa970aa27aa70bed134

Contents?: true

Size: 182 Bytes

Versions: 6

Compression:

Stored size: 182 Bytes

Contents

RSpec::Matchers.define :have_legacy_interpolations do |expected|
  match do |actual|
    locale_file = I18nSpec::LocaleFile.new(actual)
    locale_file.content =~ /{{.+}}/
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
i18n-spec-0.1.3 lib/i18n-spec/matchers/have_legacy_interpolations.rb
i18n-spec-0.1.2 lib/i18n-spec/matchers/have_legacy_interpolations.rb
i18n-spec-0.1.1 lib/i18n-spec/matchers/have_legacy_interpolations.rb
i18n-spec-0.1.0 lib/i18n-spec/matchers/have_legacy_interpolations.rb
i18n-spec-0.0.10 lib/i18n-spec/matchers/have_legacy_interpolations.rb
i18n-spec-0.0.9 lib/i18n-spec/matchers/have_legacy_interpolations.rb