Sha256: 847309b96b755ca954ac0087b0b5fd8f78b54926b856ca0c5bea40da36cec65f

Contents?: true

Size: 180 Bytes

Versions: 32

Compression:

Stored size: 180 Bytes

Contents

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

  match do |pattern|
    compile_key_pattern(pattern).should =~ key
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
i18n-tasks-0.4.0.beta1 spec/support/key_pattern_matcher.rb
i18n-tasks-0.3.11 spec/support/key_pattern_matcher.rb
i18n-tasks-0.3.10 spec/support/key_pattern_matcher.rb
i18n-tasks-0.3.9 spec/support/key_pattern_matcher.rb
i18n-tasks-0.3.8 spec/support/key_pattern_matcher.rb
i18n-tasks-0.3.7 spec/support/key_pattern_matcher.rb
i18n-tasks-0.3.6 spec/support/key_pattern_matcher.rb
i18n-tasks-0.3.5 spec/support/key_pattern_matcher.rb
i18n-tasks-0.3.4 spec/support/key_pattern_matcher.rb
i18n-tasks-0.3.3 spec/support/key_pattern_matcher.rb
i18n-tasks-0.3.2 spec/support/key_pattern_matcher.rb
i18n-tasks-0.3.1 spec/support/key_pattern_matcher.rb
i18n-tasks-0.3.0 spec/support/key_pattern_matcher.rb
i18n-tasks-0.3.0.rc1 spec/support/key_pattern_matcher.rb
i18n-tasks-0.2.22 spec/support/key_pattern_matcher.rb
i18n-tasks-0.2.21 spec/support/key_pattern_matcher.rb
i18n-tasks-0.2.20 spec/support/key_pattern_matcher.rb
i18n-tasks-0.2.19 spec/support/key_pattern_matcher.rb
i18n-tasks-0.2.18 spec/support/key_pattern_matcher.rb
i18n-tasks-0.2.17 spec/support/key_pattern_matcher.rb