Module: Spec::Example::Subject::ExampleMethods
- Defined in:
- lib/spec-i18n/example/subject.rb
Class Method Summary collapse
Class Method Details
.register_subjects ⇒ Object
17 18 19 20 21 22 |
# File 'lib/spec-i18n/example/subject.rb', line 17 def register_subjects subject_and_expectation_keywords = natural_language.subject_keywords.merge(natural_language.expectation_keywords) subject_and_expectation_keywords.each do |key, values| values.map { |value| alias_method value, key } end end |