Sha256: 4e872a21266aea181bd0ef20378eb65f726a068ffdc1199256a5427d59126034
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
Contents
# Copyright (C) 2017 Kouhei Sutou <kou@clear-code.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA require "rails/command" require "test/unit/autorunner" module Rails module Command class TestCommand < Base no_commands do def help perform end end def perform(*) $LOAD_PATH << Rails::Command.root.join("test").to_s ARGV.unshift("--exclude=\\Atest_helper\\.rb\\z") ARGV.unshift("--default-test-path=test") exit(Test::Unit::AutoRunner.run(true)) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
test-unit-rails-6.0.0 | lib/rails/commands/test/test_command.rb |