Namespace
Methods
- A
- N
- R
- T
-
- test_console_defaults_to_IRB,
- test_console_with_environment,
- test_debugger_option,
- test_default_environment_with_no_rails_env,
- test_default_environment_with_rack_env,
- test_default_environment_with_rails_env,
- test_e_option,
- test_environment_option,
- test_no_options,
- test_no_options_does_not_set_debugger_flag,
- test_rails_env_is_dev_when_argument_is_dev_and_dev_env_is_present,
- test_rails_env_is_development_when_argument_is_d,
- test_rails_env_is_production_when_first_argument_is_p,
- test_rails_env_is_test_when_first_argument_is_t,
- test_sandbox_option,
- test_short_version_of_sandbox_option,
- test_start,
- test_start_with_debugger,
- test_start_with_sandbox
Included Modules
Class Public methods
new(console)
Link
Instance Public methods
available_environments()
Link
require_debugger()
Link
test_console_defaults_to_IRB()
Link
test_console_with_environment()
Link
test_debugger_option()
Link
test_default_environment_with_no_rails_env()
Link
test_default_environment_with_rack_env()
Link
test_default_environment_with_rails_env()
Link
test_e_option()
Link
test_environment_option()
Link
test_no_options()
Link
test_no_options_does_not_set_debugger_flag()
Link
test_rails_env_is_dev_when_argument_is_dev_and_dev_env_is_present()
Link
# File railties/test/commands/console_test.rb, line 127 def test_rails_env_is_dev_when_argument_is_dev_and_dev_env_is_present stubbed_console = Class.new(Rails::Console) do def available_environments ['dev'] end end options = stubbed_console.parse_arguments(['dev']) assert_match('dev', options[:environment]) end
test_rails_env_is_development_when_argument_is_d()
Link
test_rails_env_is_production_when_first_argument_is_p()
Link
test_rails_env_is_test_when_first_argument_is_t()
Link
test_sandbox_option()
Link
test_short_version_of_sandbox_option()
Link
test_start()
Link
test_start_with_debugger()
Link
# File railties/test/commands/console_test.rb, line 60 def test_start_with_debugger stubbed_console = Class.new(Rails::Console) do def require_debugger end end rails_console = stubbed_console.new(app, parse_arguments(["--debugger"])) silence_stream(STDOUT) { rails_console.start } end