diff options
Diffstat (limited to 'qa/qa/specs/runner.rb')
-rw-r--r-- | qa/qa/specs/runner.rb | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/qa/qa/specs/runner.rb b/qa/qa/specs/runner.rb index 2aa18d5d3a1..3cfe52b350c 100644 --- a/qa/qa/specs/runner.rb +++ b/qa/qa/specs/runner.rb @@ -2,16 +2,14 @@ require 'rspec/core' module QA module Specs - class Runner - include Scenario::Actable - - def rspec(tty: false, tags: [], files: ['qa/specs/features']) + class Runner < Scenario::Template + def perform(tty: false, tags: [], files: ['qa/specs/features']) args = [] - args << '--tty' if tty - tags.to_a.each do |tag| - args << ['-t', tag.to_s] - end - args << files + args.push('--tty') if tty + tags.to_a.each { |tag| args.push(['-t', tag.to_s]) } + args.push(files) + + Specs::Config.perform RSpec::Core::Runner.run(args.flatten, $stderr, $stdout).tap do |status| abort if status.nonzero? |