Sha256: 37bd94b9667498fd9efa82d696e1e997ce598eaeeb52b25e52b52df2d1080385

Contents?: true

Size: 511 Bytes

Versions: 8

Compression:

Stored size: 511 Bytes

Contents

require 'bundler/gem_tasks'

desc 'Run all specs'
task :specs do
  opts = %w(rspec -c)
  opts += ['--require', File.join(File.dirname(__FILE__), 'spec', 'spec_helper')]
  # opts += ['-I', YARD::ROOT]
  if ENV['DEBUG']
    $DEBUG = true
    opts += ['-d']
  end
  opts += FileList['spec/**/*_spec.rb'].sort
  cmd = opts.join(' ')
  puts cmd if Rake.application.options.trace
  system(cmd)
  raise "Command failed with status (#{$?.to_i}): #{cmd}" if $?.to_i != 0
end
task :spec => :specs
task :default => :specs

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
codeqa-0.5.0 Rakefile
codeqa-0.4.2 Rakefile
codeqa-0.4.1 Rakefile
codeqa-0.4.0 Rakefile
codeqa-0.4.0.pre2 Rakefile
codeqa-0.4.0.pre Rakefile
codeqa-0.3.1 Rakefile
codeqa-0.3.0 Rakefile