Sha256: 94d9417724783a22600ba8930a069feed2baef78eeb9cd1dca8683166e53ac40

Contents?: true

Size: 399 Bytes

Versions: 2

Compression:

Stored size: 399 Bytes

Contents

require 'git'
# TestDiff module
module TestDiff
  # module for test runners
  module TestRunner
    # class to run rspec tests
    class Rspec
      def run_tests(specs)
        if specs.any?
          STDERR.puts "bundle exec rspec #{specs.join(' ')}"
          exec "bundle exec rspec #{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/rspec.rb
test_diff-0.3.1 lib/test_diff/test_runner/rspec.rb