Sha256: b2600723cf9369fdaadc240ce06b689973d5235ae78cc8978cc4b9cc71e07bc7
Contents?: true
Size: 822 Bytes
Versions: 5
Compression:
Stored size: 822 Bytes
Contents
require "bundler/gem_tasks" gem 'rspec' require 'rspec/core/rake_task' desc "Run specs" RSpec::Core::RakeTask.new(:spec) do |t| t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default. # Put spec opts in a file named .rspec in root end desc "Generate code coverage" RSpec::Core::RakeTask.new(:coverage) do |t| t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default. t.rcov = true t.rcov_opts = ['--exclude', 'spec'] end ###################################################################### desc "Default => :test" task :default => :test desc "Run all tests" task :test => [ :spec ] desc "Run examples." task :example do ENV["ASIR_EXAMPLE_SILENT"]="1" Dir["example/ex[0-9]*.rb"].each do | rb | sh %Q{ruby -I example -I lib #{rb}} end ENV.delete("ASIR_EXAMPLE_SILENT") end
Version data entries
5 entries across 5 versions & 3 rubygems
Version | Path |
---|---|
asir_resque-1.2.0 | Rakefile |
asir_resque-1.1.3 | Rakefile |
asir_beanstalk-1.1.2 | Rakefile |
asir_beanstalk-1.1.1 | Rakefile |
asir_zmq-1.1.0 | Rakefile |