Sha256: 552279816cac1817a46175a276b28d5b89c19cff595b05e7911c7c535419cb44

Contents?: true

Size: 324 Bytes

Versions: 2

Compression:

Stored size: 324 Bytes

Contents

module TestUnit
  module Generators
    class NotifierGenerator < ::Rails::Generators::NamedBase
      source_root File.expand_path("../templates", __FILE__)

      def create_test_file
        template "notifier_test.tt", File.join("test/notifiers", class_path, "#{file_name}_notifier_test.rb")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pubsub_notifier-0.1.2 lib/generators/test_unit/notifier_generator.rb
pubsub_notifier-0.1.1 lib/generators/test_unit/notifier_generator.rb