Sha256: f83b1bccb7a2f96006ef26de20391f165df4610ca90847f542d176b13f367a5e

Contents?: true

Size: 396 Bytes

Versions: 2

Compression:

Stored size: 396 Bytes

Contents

require 'git'
# TestDiff module
module TestDiff
  # module for test runners
  module TestRunner
    # class to run rspec tests
    class Spec
      def run_tests(specs)
        if specs.any?
          STDERR.puts "bundle exec spec #{specs.join(' ')}"
          exec "bundle exec spec #{specs.join(' ')}"
        else
          puts 'no specs found to run'
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
test_diff-0.3.2 lib/test_diff/test_runner/spec.rb
test_diff-0.3.1 lib/test_diff/test_runner/spec.rb