diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-12-14 14:54:59 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-01-09 10:07:48 +0900 |
commit | 2a5c116f12c7716399f5da3fe788f7e23ae67c4c (patch) | |
tree | 6befeb4de59a0a62bb21b0d64ae11e3b287e0b66 /railties/test/engine/commands_tasks_test.rb | |
parent | 7f19f30819dd5a5a788ad9d8b12b5dda76559a12 (diff) | |
download | rails-2a5c116f12c7716399f5da3fe788f7e23ae67c4c.tar.gz rails-2a5c116f12c7716399f5da3fe788f7e23ae67c4c.tar.bz2 rails-2a5c116f12c7716399f5da3fe788f7e23ae67c4c.zip |
make all rails commands work in engine
Currently, all rails commands can be executed in engine,
but `server`, `console`, `dbconsole` and `runner` do not work.
This make all rails commands work in engine.
Related to #22588
Diffstat (limited to 'railties/test/engine/commands_tasks_test.rb')
-rw-r--r-- | railties/test/engine/commands_tasks_test.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/railties/test/engine/commands_tasks_test.rb b/railties/test/engine/commands_tasks_test.rb deleted file mode 100644 index 817175b9ef..0000000000 --- a/railties/test/engine/commands_tasks_test.rb +++ /dev/null @@ -1,24 +0,0 @@ -require "abstract_unit" - -class Rails::Engine::CommandsTasksTest < ActiveSupport::TestCase - def setup - @destination_root = Dir.mktmpdir("bukkits") - Dir.chdir(@destination_root) { `bundle exec rails plugin new bukkits --mountable` } - end - - def teardown - FileUtils.rm_rf(@destination_root) - end - - def test_help_command_work_inside_engine - output = capture(:stderr) do - Dir.chdir(plugin_path) { `bin/rails --help` } - end - assert_no_match "NameError", output - end - - private - def plugin_path - "#{@destination_root}/bukkits" - end -end |