lib/generators/rspec/notifier_generator.rb in pubsub_notifier-0.1.0 vs lib/generators/rspec/notifier_generator.rb in pubsub_notifier-0.1.1

- old
+ new

@@ -1,9 +1,11 @@ module RSpec - class NotifierGenerator < ::Rails::Generators::NamedBase - source_root File.expand_path("../templates", __FILE__) + module Generators + class NotifierGenerator < ::Rails::Generators::NamedBase + source_root File.expand_path("../templates", __FILE__) - def create_spec_file - template 'notifier_spec.rb', File.join('spec/notifiers', class_path, "#{file_name}_notifier_spec.rb") + def create_spec_file + template "notifier_spec.tt", File.join("spec/notifiers", class_path, "#{file_name}_notifier_spec.rb") + end end end end