Skip to content

Commit

Permalink
Add color and documentation format for spec
Browse files Browse the repository at this point in the history
  • Loading branch information
LTe committed Jul 2, 2011
1 parent 9499c28 commit 18ec901
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,8 @@ Jeweler::RubygemsDotOrgTasks.new
require 'rspec/core'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.rspec_opts = ['-fd -c']
spec.pattern = FileList['spec/**/*_spec.rb']
end

RSpec::Core::RakeTask.new(:rcov) do |spec|
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
end

task :default => :spec

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""

rdoc.rdoc_dir = 'rdoc'
rdoc.title = "acts-as-messageable #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end

0 comments on commit 18ec901

Please sign in to comment.