Sha256: 9deb976333768f0e28457e782ff27dc311ba69a1ffb421931f992c86688a17b5

Contents?: true

Size: 373 Bytes

Versions: 4

Compression:

Stored size: 373 Bytes

Contents

# frozen_string_literal: true

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'

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

      system! cmd
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
aid-0.2.2 examples/rspec.rb
abtion-aid-0.3.2 examples/rspec.rb
abtion-aid-0.3.1 examples/rspec.rb
abtion-aid-0.2.0 examples/rspec.rb