Sha256: 4406debc8213e6efa0c9962b8d01368eec808b4eb4d6d62aac30657e1a36b224
Contents?: true
Size: 692 Bytes
Versions: 2
Compression:
Stored size: 692 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' uncomment_lines 'config/environments/development.rb', /raise_on_missing_translations/ uncomment_lines 'config/environments/test.rb', /raise_on_missing_translations/ super end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stationed-0.3.0 | lib/stationed/generators/plugins/i18n_spec.rb |
stationed-0.2.0 | lib/stationed/generators/plugins/i18n_spec.rb |