Sha256: dac9a4f81608735261e3fb6d627a8596bbd4ebf93487c378a6eab47131291e28
Contents?: true
Size: 760 Bytes
Versions: 6
Compression:
Stored size: 760 Bytes
Contents
require 'spec/rake/spectask' desc "Run specs" Spec::Rake::SpecTask.new(:spec) do |spec| spec.libs << 'lib' << 'spec' << 'examples' spec.spec_opts = ['--options', "spec/spec.opts"] spec.spec_files = FileList['spec/**/*_spec.rb'] end namespace :spec do [:libxml, :nokogiri].each do |parser| desc "Spec ROXML under the #{parser} parser" Spec::Rake::SpecTask.new(parser) do |spec| spec.libs << 'lib' << 'spec' << 'examples' spec.spec_opts = ['--options=spec/spec.opts'] spec.spec_files = ["spec/support/#{parser}.rb"] + FileList['spec/**/*_spec.rb'] end end end desc "Run specs with rcov" Spec::Rake::SpecTask.new(:rcov) do |spec| spec.libs << 'lib' << 'spec' spec.pattern = 'spec/**/*_spec.rb' spec.rcov = true end
Version data entries
6 entries across 6 versions & 2 rubygems
Version | Path |
---|---|
roxml-3.1.4 | tasks/rspec.rake |
roxml-3.1.3 | tasks/rspec.rake |
roxml-3.1.2 | tasks/rspec.rake |
roxml-3.1.1 | tasks/rspec.rake |
roxml-3.1.0 | tasks/rspec.rake |
ROXML-3.0.0 | tasks/rspec.rake |