Sha256: c772e97b5b063d27fd3eab3bb786c8cc9cbab31dbd154bbc2eeba676607bcdf2

Contents?: true

Size: 894 Bytes

Versions: 2

Compression:

Stored size: 894 Bytes

Contents

begin
  require 'spec'
rescue LoadError
  require 'rubygems'
  require 'spec'
end
begin
  require 'spec/rake/spectask'
rescue LoadError
  puts <<-EOS
To use rspec for testing you must install rspec gem:
    gem install rspec
EOS
  exit(0)
end

desc "Run the specs under spec/"
Spec::Rake::SpecTask.new do |t|
  t.spec_opts = ['--options', "spec/spec.opts"]
  t.spec_files = FileList['spec/**/*_spec.rb']
end

desc "Run the specs under spec/ with rcov enabled"
Spec::Rake::SpecTask.new 'rcov' do |t|
  t.spec_opts = ['--options', "spec/spec.opts"]
  t.spec_files = FileList['spec/**/*_spec.rb']
  t.rcov = true
  t.rcov_opts = ['--exclude', 'spec']
end

desc "Generate HTML report for rspec examples"
Spec::Rake::SpecTask.new('spec_report') do |t|
  t.spec_opts = ["--format", "html:../doc/rspec/specs.html", "--diff"]
  t.spec_files = FileList['spec/**/*_spec.rb']
  t.fail_on_error = false
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jetty-rails-0.1 tasks/rspec.rake
jetty-rails-0.2 tasks/rspec.rake