Sha256: 80ef0fa11a03fc289bb49300b6e52cc6f685c10b2c926fb3159cf8d5dcd73d55
Contents?: true
Size: 428 Bytes
Versions: 1
Compression:
Stored size: 428 Bytes
Contents
module Retest class Command Rails = Struct.new(:all, :bin_file) do def self.command(all:, bin_file: File.exist?('bin/rails')) new(all, bin_file).command end def command return "#{root_command} <test>" unless all root_command end private def root_command return 'bin/rails test' if bin_file 'bundle exec rails test' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
retest-1.1.0 | lib/retest/command/rails.rb |