Skip to content

Instantly share code, notes, and snippets.

@romikoops
Created April 5, 2012 11:34
Show Gist options
  • Save romikoops/2310109 to your computer and use it in GitHub Desktop.
Save romikoops/2310109 to your computer and use it in GitHub Desktop.
Just test code
require 'rubygems'
require 'rspec/core/rake_task'
require 'yard'
desc "Run all examples"
RSpec::Core::RakeTask.new(:spec) do |t|
#t.rspec_path = 'bin/rspec'
t.rspec_opts = %w[--color]
end
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb', 'README.rdoc']
#t.options = ['--any', '--extra', '--opts'] # optional
end
task :default => :spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment