Class: TurboTest::RSpec::Job
- Inherits:
-
Object
- Object
- TurboTest::RSpec::Job
- Defined in:
- lib/turbo_test/rspec/job.rb
Constant Summary collapse
- PATTERN =
"spec/**/*_spec.rb"
Instance Method Summary collapse
- #call(packer:, stdout: $stdout, stderr: $stderr) ⇒ Object
-
#initialize(path, **options) ⇒ Job
constructor
A new instance of Job.
Constructor Details
#initialize(path, **options) ⇒ Job
Returns a new instance of Job.
33 34 35 |
# File 'lib/turbo_test/rspec/job.rb', line 33 def initialize(path, **) @path = path end |
Instance Method Details
#call(packer:, stdout: $stdout, stderr: $stderr) ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/turbo_test/rspec/job.rb', line 37 def call(packer:, stdout: $stdout, stderr: $stderr) reset_rspec_state! = ConfigurationOptions.new([@path], packer: packer ) runner = ::RSpec::Core::Runner.new() runner.run(stdout, stderr) end |