Sha256: fedf7756b7a6d993ec24517f5fade5fa6e951c30579d3791662e56c4a98fd318
Contents?: true
Size: 535 Bytes
Versions: 3
Compression:
Stored size: 535 Bytes
Contents
module Retest class Command class Rspec attr_reader :all, :file_system def initialize(all:, file_system: FileSystem) @file_system = file_system @all = all end def to_s return "#{root_command} <test>" unless all root_command end def run_all(*files, runner:) runner.run files.join(' ') end private def root_command return 'bin/rspec' if file_system.exist? 'bin/rspec' 'bundle exec rspec' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
retest-1.4.0 | lib/retest/command/rspec.rb |
retest-1.3.0 | lib/retest/command/rspec.rb |
retest-1.3.0.pre | lib/retest/command/rspec.rb |