lib/spec-i18n/dsl/main.rb in rspec-i18n-0.2.1 vs lib/spec-i18n/dsl/main.rb in rspec-i18n-1.0.0
- old
+ new
@@ -6,10 +6,10 @@
#
# { "describe" => ["descreva", "contexto"]}
#
# Register alias for the language specified
def register_adverbs
- language = SpecI18n::Parser::NaturalLanguage.get(SpecI18n.spec_language)
+ language = SpecI18n.natural_language
@adverbs = language.dsl_keywords
@adverbs.each do |key, values|
values.map { |value| alias_method value, key }
end
end