Sha256: 133c203c1e2231d721277563536cb1a6dfb425d112d7169301f2ddc4a423d60f
Contents?: true
Size: 531 Bytes
Versions: 17
Compression:
Stored size: 531 Bytes
Contents
module Retest class Command class Rails 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 format_batch(*files) files.join(' ') end private def root_command return 'bin/rails test' if file_system.exist? 'bin/rails' 'bundle exec rails test' end end end end
Version data entries
17 entries across 17 versions & 1 rubygems