Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Test add for plugin new generator generate mailer

  • Loading branch information...
commit 4fe2c99052928a8669d7bbc70bfdfe059eba67bc 1 parent 270fa63
@arunagw arunagw authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 railties/test/generators/plugin_new_generator_test.rb
9 railties/test/generators/plugin_new_generator_test.rb
@@ -25,10 +25,6 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase
# brings setup, teardown, and some tests
include SharedGeneratorTests
- def default_files
- end
def test_invalid_plugin_name_raises_an_error
content = capture(:stderr){ run_generator [File.join(destination_root, "43-things")] }
assert_equal "Invalid plugin name 43-things. Please give a name which does not start with numbers.\n", content
@@ -176,6 +172,7 @@ def test_creating_engine_in_full_mode
assert_file "app/controllers"
assert_file "app/views"
assert_file "app/helpers"
+ assert_file "app/mailers"
assert_file "config/routes.rb", /Rails.application.routes.draw do/
assert_file "lib/bukkits/engine.rb", /module Bukkits\n class Engine < ::Rails::Engine\n end\nend/
assert_file "lib/bukkits.rb", /require "bukkits\/engine"/
@@ -257,6 +254,10 @@ def action(*args, &block)
silence(:stdout){ generator.send(*args, &block) }
+ def default_files
+ end
class CustomPluginGeneratorTest < Rails::Generators::TestCase
Please sign in to comment.
Something went wrong with that request. Please try again.