Sha256: e4130452c0c4475812ef62b30d72b54a5382544482f1007b94ad63383c8a8db9

Contents?: true

Size: 439 Bytes

Versions: 9

Compression:

Stored size: 439 Bytes

Contents

module TestUnit
  module Generators
    class NotifierGenerator < ::Rails::Generators::NamedBase
      source_root File.expand_path('../templates', __FILE__)
      check_class_collision suffix: 'Test'

      argument :actions, type: :array, default: [], banner: 'method method'

      def generate_mailer_spec
        template 'notifier_test.rb', File.join('test/notifiers', class_path, "#{file_name}_test.rb")
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
outbox-rails-1.0.0 lib/generators/test_unit/notifier/notifier_generator.rb
outbox-rails-0.5.1 lib/generators/test_unit/notifier/notifier_generator.rb
outbox-rails-0.5.0 lib/generators/test_unit/notifier/notifier_generator.rb
outbox-rails-0.4.2 lib/generators/test_unit/notifier/notifier_generator.rb
outbox-rails-0.4.1 lib/generators/test_unit/notifier/notifier_generator.rb
outbox-rails-0.4.0 lib/generators/test_unit/notifier/notifier_generator.rb
outbox-rails-0.3.0 lib/generators/test_unit/notifier/notifier_generator.rb
outbox-rails-0.2.0 lib/generators/test_unit/notifier/notifier_generator.rb
outbox-rails-0.1.2 lib/generators/test_unit/notifier/notifier_generator.rb