Sha256: 931236fd4b3ac85a2f336e5880506810874f57a40a9ce42afdcff5aa42264438

Contents?: true

Size: 358 Bytes

Versions: 1

Compression:

Stored size: 358 Bytes

Contents

class Rspec < Aid::Script
  def self.description
    "Runs the full RSpec suite"
  end

  def self.help
    <<~HELP
    Usage: aid rspec [any args to rspec]
    HELP
  end

  def run
    step "Running RSpec suite" do
      cmd = "bundle exec rspec"

      unless argv.empty?
        cmd << " #{argv.join(' ')}"
      end

      system! cmd
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aid-0.1.3 examples/rspec.rb