Skip to content
Newer
Older
100644 35 lines (29 sloc) 978 Bytes
dcf8beb Initial Commit
Justin French authored Apr 7, 2008
1 require 'rake'
2 require 'rake/rdoctask'
281dd18 @xaviershay rspec support - test_helper and rake task
xaviershay authored Jul 5, 2008
3 require 'spec/rake/spectask'
dcf8beb Initial Commit
Justin French authored Apr 7, 2008
4
281dd18 @xaviershay rspec support - test_helper and rake task
xaviershay authored Jul 5, 2008
5 desc 'Default: run unit specs.'
6 task :default => :spec
dcf8beb Initial Commit
Justin French authored Apr 7, 2008
7
8 desc 'Test the formtastic plugin.'
281dd18 @xaviershay rspec support - test_helper and rake task
xaviershay authored Jul 5, 2008
9 Spec::Rake::SpecTask.new('spec') do |t|
10 t.spec_files = FileList['spec/**/*_spec.rb']
40d1857 @justinfrench use color formatting in the main spec rake task too
authored Sep 20, 2008
11 t.spec_opts = ["-c"]
dcf8beb Initial Commit
Justin French authored Apr 7, 2008
12 end
13
7fef413 @justinfrench added a rake task 'specdoc' for running the specs with specdoc format…
authored Sep 20, 2008
14 desc 'Test the formtastic plugin with specdoc formatting and colors'
15 Spec::Rake::SpecTask.new('specdoc') do |t|
16 t.spec_files = FileList['spec/**/*_spec.rb']
17 t.spec_opts = ["--format specdoc", "-c"]
18 end
19
dcf8beb Initial Commit
Justin French authored Apr 7, 2008
20 desc 'Generate documentation for the formtastic plugin.'
21 Rake::RDocTask.new(:rdoc) do |rdoc|
22 rdoc.rdoc_dir = 'rdoc'
23 rdoc.title = 'Formtastic'
24 rdoc.options << '--line-numbers' << '--inline-source'
8e2ca3a @justinfrench modified Rakefile to build with README.textile
authored Feb 17, 2009
25 rdoc.rdoc_files.include('README.textile')
dcf8beb Initial Commit
Justin French authored Apr 7, 2008
26 rdoc.rdoc_files.include('lib/**/*.rb')
27 end
7fef413 @justinfrench added a rake task 'specdoc' for running the specs with specdoc format…
authored Sep 19, 2008
28
a27aa2b @justinfrench Added in a Rake task for running the specs with rcov, plus a line in …
authored Nov 15, 2008
29 desc "Run all examples with RCov"
30 Spec::Rake::SpecTask.new('examples_with_rcov') do |t|
31 t.spec_files = FileList['spec/**/*_spec.rb']
32 t.rcov = true
33 t.rcov_opts = ['--exclude', 'spec,Library']
34 end
Something went wrong with that request. Please try again.