Sha256: 2a288d830f9fc7240af0576a4e656e76dc7b22a8fec50b34bddad42673c041d0
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
require 'tasks/config' #-------------------------------------------------------------------------------- # configuration for running rspec. This shows up as the test:default task #-------------------------------------------------------------------------------- if spec_config = Configuration.for_if_exist?("test") then if spec_config.mode == "spec" then namespace :test do task :default => :spec require 'spec/rake/spectask' rs = Spec::Rake::SpecTask.new do |r| r.ruby_opts = spec_config.ruby_opts r.libs = [ Amalgalite::Paths.lib_path, Amalgalite::Paths.ext_path, Amalgalite::Paths.root_dir ] r.spec_files = spec_config.files r.spec_opts = spec_config.options r.warning = true if rcov_config = Configuration.for_if_exist?('rcov') then r.rcov = true r.rcov_dir = rcov_config.output_dir r.rcov_opts = rcov_config.rcov_opts end end task :spec => 'ext:build' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
amalgalite-0.7.5-x86-mswin32-60 | tasks/rspec.rake |
amalgalite-0.7.5 | tasks/rspec.rake |