Class: RSpec::Core::CommandLine
- Defined in:
- lib/rspec/core/command_line.rb
Constant Summary
Constants inherited from Runner
Runner::AT_EXIT_HOOK_BACKTRACE_LINE
Instance Method Summary collapse
-
#initialize(options, configuration = RSpec.configuration, world = RSpec.world) ⇒ CommandLine
constructor
A new instance of CommandLine.
Methods inherited from Runner
autorun, autorun_disabled?, disable_autorun!, installed_at_exit?, #run, run, running_in_drb?, trap_interrupt
Constructor Details
#initialize(options, configuration = RSpec.configuration, world = RSpec.world) ⇒ CommandLine
Returns a new instance of CommandLine.
33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/rspec/core/command_line.rb', line 33 def initialize(, configuration=RSpec.configuration, world=RSpec.world) if Array === RSpec.deprecate("Instantiating a `RSpec::Core::CommandLine` with an array of options", :replacement => "Instantiate a `RSpec::Core::Runner` with a `RSpec::Core::ConfigurationOptions` instance") = ConfigurationOptions.new() . else RSpec.deprecate("`RSpec::Core::CommandLine`", :replacement => "`RSpec::Core::Runner`") end super end |