Sha256: 2188afc6ae5f54a3bf41eba7fd3854f21d990babed92026230e3929d51c153c5
Contents?: true
Size: 516 Bytes
Versions: 3
Compression:
Stored size: 516 Bytes
Contents
module Spec module DSL module Main # Register adverbs for the dsl keywords # # { "describe" => ["descreva", "contexto"]} # # Register alias for the language specified def register_adverbs language = SpecI18n::Parser::NaturalLanguage.get(SpecI18n.spec_language) @adverbs = language.dsl_keywords @adverbs.each do |key, values| values.map { |value| alias_method value, key } end end end end end include Spec::DSL::Main
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rspec-i18n-0.2.1 | lib/spec-i18n/dsl/main.rb |
rspec-i18n-0.2.0 | lib/spec-i18n/dsl/main.rb |
rspec-i18n-0.1.0 | lib/spec-i18n/dsl/main.rb |