Class: Spec::Matchers::Be

Inherits:
Object
  • Object
show all
Defined in:
lib/spec-i18n/matchers/be.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.register_be_matcherObject



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/spec-i18n/matchers/be.rb', line 7

def register_be_matcher
  language = SpecI18n.natural_language
  be_matcher = language.keywords['matchers']['be']
  
  # TODO: working with warnings
  return unless be_matcher
      
  be_matcher.split('|').map do |be_value|
    alias_method be_value, :be
  end
end