Methods
- S
- T
-
- teardown,
- test_default_environment,
- test_environment_with_rack_env,
- test_environment_with_rails_env,
- test_runner_detects_bad_script_name,
- test_runner_detects_syntax_errors,
- test_should_include_runner_in_shebang_line_in_help,
- test_should_include_runner_in_shebang_line_in_help_without_option,
- test_should_run_file,
- test_should_run_ruby_statement,
- test_should_set_dollar_0_to_file,
- test_should_set_dollar_program_name_to_file,
- test_with_hook
Included Modules
Instance Public methods
setup()
Link
teardown()
Link
test_default_environment()
Link
test_environment_with_rack_env()
Link
test_environment_with_rails_env()
Link
test_runner_detects_bad_script_name()
Link
test_runner_detects_syntax_errors()
Link
test_should_include_runner_in_shebang_line_in_help()
Link
test_should_include_runner_in_shebang_line_in_help_without_option()
Link
test_should_run_file()
Link
test_should_run_ruby_statement()
Link
test_should_set_dollar_0_to_file()
Link
test_should_set_dollar_program_name_to_file()
Link
# File railties/test/application/runner_test.rb, line 55 def test_should_set_dollar_program_name_to_file app_file "bin/program_name.rb", <<-SCRIPT puts $PROGRAM_NAME SCRIPT assert_match "bin/program_name.rb", Dir.chdir(app_path) { %x`bin/rails runner "bin/program_name.rb"` } end