Skip to content

Instantly share code, notes, and snippets.

@azizshamim
Created May 11, 2012 20:18
Show Gist options
  • Save azizshamim/2662180 to your computer and use it in GitHub Desktop.
Save azizshamim/2662180 to your computer and use it in GitHub Desktop.
Starting a spec
--format documentation
--color
task :default => [:spec]
desc "Run those specs"
task :spec do
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new do |t|
t.rspec_opts = ["-c", "-f documentation", "-r ./spec/spec_helper.rb"]
t.pattern = 'spec/**/*_spec.rb'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment