Module: Crabfarm::Utils::RSpecRunner
Defined Under Namespace
Classes: SilentFormatter
Instance Method Summary collapse
Instance Method Details
#run_single_spec_for(_target, _tag = nil) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/crabfarm/utils/rspec_runner.rb', line 14 def run_single_spec_for(_target, _tag=nil) setup_rspec_once begin configuration.reset runner = ::RSpec::Core::Runner.new (_target) runner.setup $stderr, $stdout example = skip_all_but_one _tag runner.run_specs(world.ordered_example_groups) example ensure ::RSpec.clear_examples end end |