Sha256: ea322209d3bd4b371fe8fce56ac01f83b14647762ccb7e428cf1f7e08eb965b0
Contents?: true
Size: 620 Bytes
Versions: 6
Compression:
Stored size: 620 Bytes
Contents
begin require 'rubygems' require 'spec' rescue LoadError puts <<-EOS To run the specs you must install the rspec gem: . gem install rspec EOS exit(0) end # all this just to change the default task Rake::TaskManager.class_eval do def remove_task(task_name) @tasks.delete(task_name.to_s) end end def remove_task(task_name) Rake.application.remove_task(task_name) end require 'spec/rake/spectask' desc "Run the specs." Spec::Rake::SpecTask.new do |t| t.spec_opts = ['--options', "spec/spec.opts"] t.spec_files = FileList['spec/*_spec.rb'] end remove_task :default task :default => :spec
Version data entries
6 entries across 6 versions & 2 rubygems