class TestUnit::Generators::MailboxGenerator

Public Instance Methods

create_test_files() click to toggle source
# File lib/rails/generators/test_unit/mailbox_generator.rb, line 10
def create_test_files
  template "mailbox_test.rb", File.join("test/mailboxes", class_path, "#{file_name}_mailbox_test.rb")
end

Private Instance Methods

file_name() click to toggle source
Calls superclass method
# File lib/rails/generators/test_unit/mailbox_generator.rb, line 15
def file_name # :doc:
  @_file_name ||= super.sub(/_mailbox\z/i, "")
end