Module: Spec::Example::Subject::ExampleGroupMethods

Defined in:
lib/spec-i18n/example/subject.rb

Class Method Summary collapse

Class Method Details

.register_subjectsObject



7
8
9
10
11
12
# File 'lib/spec-i18n/example/subject.rb', line 7

def register_subjects
  subject_and_its_keywords = natural_language.subject_keywords.merge(natural_language.its_keywords)
  subject_and_its_keywords.each do |key, values|
    values.map { |value| alias_method value, key }
  end
end