Sha256: df5e142c81748bb7a669e194ae61bbc7417d2fcabf7ab1d7648b69609ff4a1e4

Contents?: true

Size: 587 Bytes

Versions: 10

Compression:

Stored size: 587 Bytes

Contents

CLEAN.include %w(coverage tmp log)

if RUBY_1_9
  task :spec do
    warn 'RSpec not yet supporting Ruby 1.9, so cannot run the specs :('
  end
else
  # RSpec not yet working w/ Ruby 1.9
  require 'spec/rake/spectask'
  
  desc "Run all examples"
  Spec::Rake::SpecTask.new('spec') do |t|
    t.spec_files = FileList['spec/**/*_spec.rb']
  end
  
  task :check_spec_gems do
    begin
      require 'spec'
      require 'benchmark_unit'
    rescue LoadError
      abort "To run specs, install rspec and benchmark_unit gems"
    end
  end
  
  task :spec => [:check_spec_gems, :compile]
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
thin-0.6.0-x86-mswin32-60 tasks/spec.rake
thin-0.6.2-x86-mswin32-60 tasks/spec.rake
thin-0.6.1-x86-mswin32-60 tasks/spec.rake
thin-0.6.3-x86-mswin32-60 tasks/spec.rake
thin-0.6.0 tasks/spec.rake
thin-0.6.2 tasks/spec.rake
thin-0.6.4 tasks/spec.rake
thin-0.6.1 tasks/spec.rake
thin-0.6.3 tasks/spec.rake
thin-0.6.4-x86-mswin32-60 tasks/spec.rake