Sha256: b9578f2769aa59f5339eb6e325e62ee06a2f1d65e3664499bcd6792ad95962de
Contents?: true
Size: 507 Bytes
Versions: 1
Compression:
Stored size: 507 Bytes
Contents
module Stationed module Generators module Plugins module I18nSpec def self.prepended(base) base.class_option :i18n_spec, type: :boolean, default: true, desc: 'Set up tests for locale files' end def finish_template return super unless options[:i18n_spec] gem 'i18n-spec', group: :test copy_file 'i18n_spec.rb', 'spec/locales/i18n_spec.rb' super end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stationed-0.1.0 | lib/stationed/generators/plugins/i18n_spec.rb |