Sha256: d2b0e16cbcd340a2847549d267744a0e49379a783b8812516229ca53268a365b

Contents?: true

Size: 188 Bytes

Versions: 37

Compression:

Stored size: 188 Bytes

Contents

# coding: utf-8
RSpec::Matchers.define :match_key do |key|
  include I18n::Tasks::KeyPatternMatching

  match do |pattern|
    expect(compile_key_pattern(pattern)).to match(key)
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
i18n-tasks-0.8.7 spec/support/key_pattern_matcher.rb
i18n-tasks-0.8.6 spec/support/key_pattern_matcher.rb
i18n-tasks-0.8.5 spec/support/key_pattern_matcher.rb
i18n-tasks-0.8.4 spec/support/key_pattern_matcher.rb
i18n-tasks-0.8.3 spec/support/key_pattern_matcher.rb
i18n-tasks-0.8.2 spec/support/key_pattern_matcher.rb
i18n-tasks-0.8.1 spec/support/key_pattern_matcher.rb
i18n-tasks-0.8.0 spec/support/key_pattern_matcher.rb
i18n-tasks-0.7.13 spec/support/key_pattern_matcher.rb
i18n-tasks-0.7.12 spec/support/key_pattern_matcher.rb
i18n-tasks-0.7.11 spec/support/key_pattern_matcher.rb
i18n-tasks-0.7.10 spec/support/key_pattern_matcher.rb
i18n-tasks-0.7.9 spec/support/key_pattern_matcher.rb
i18n-tasks-0.7.8 spec/support/key_pattern_matcher.rb
i18n-tasks-0.7.7 spec/support/key_pattern_matcher.rb
i18n-tasks-0.7.6 spec/support/key_pattern_matcher.rb
i18n-tasks-0.7.5 spec/support/key_pattern_matcher.rb
i18n-tasks-0.7.4 spec/support/key_pattern_matcher.rb
i18n-tasks-0.7.3 spec/support/key_pattern_matcher.rb
i18n-tasks-0.7.2 spec/support/key_pattern_matcher.rb