Sha256: 6d7e3c709f0db4a7b149316a1aab7d4c077cd06c39a5533193b7fd1ad674a6aa
Contents?: true
Size: 867 Bytes
Versions: 6
Compression:
Stored size: 867 Bytes
Contents
require File.expand_path("command", __dir__) module Cardio class Commands # enhance standard RSpec command with some decko/card -specific options class RspecCommand < Command def initialize args require "rspec/core" cardio_args, @rspec_args = split_args args @opts = {} Parser.new(@opts).parse!(cardio_args) end def command "#{env_args} #{@opts[:executer]} #{@opts[:rescue]}" \ "rspec #{@rspec_args.shelljoin} #{@opts[:files]}" end private def env_args ["RAILS_ROOT=.", coverage].compact.join " " end def coverage # no coverage if rspec was started with file argument return unless @opts[:files] || @rspec_args.any? "COVERAGE=false" end end end end require File.expand_path("rspec_command/parser", __dir__)
Version data entries
6 entries across 6 versions & 1 rubygems