Sha256: 2eb80b7fdd85a0bd9f4f0045361c48cadf83f4ae876d96a39c79b60c7f7a74f2

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

module Retest
  class Command
    class Rspec < Base
      def to_s
        if all
          root_command
        else
          "#{root_command} <test>"
        end
      end

      def format_batch(*files)
        files.join(' ')
      end

      private

      def root_command
        if file_system.exist? 'bin/rspec'
          'bin/rspec'
        else
          'bundle exec rspec'
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
retest-2.0.0.pre4 lib/retest/command/rspec.rb