Skip to content
This repository
Newer
Older
100644 49 lines (41 sloc) 1.368 kb
0a59e0c0 » yabawock
2010-09-27 Always use # encoding: utf-8 declaration
1 # encoding: utf-8
b77e11ad » yabawock
2010-04-15 Make Rakefile compatible with rails2 & rails3
2 require 'rubygems'
dcf8bebb » Justin French
2008-04-07 Initial Commit
3 require 'rake'
4 require 'rake/rdoctask'
34848c4a » sobrinho
2010-09-30 Cleanup Rakefile
5 require 'rspec/core/rake_task'
050ef126 »
2011-03-29 Added new rcov tasks, made spec_and_verify_coverage the default rake …
6 require 'tasks/verify_rcov'
dcf8bebb » Justin French
2008-04-07 Initial Commit
7
281dd186 » xaviershay
2008-07-05 rspec support - test_helper and rake task
8 desc 'Default: run unit specs.'
050ef126 »
2011-03-29 Added new rcov tasks, made spec_and_verify_coverage the default rake …
9 task :default => :spec_and_verify_coverage
dcf8bebb » Justin French
2008-04-07 Initial Commit
10
11 desc 'Generate documentation for the formtastic plugin.'
12 Rake::RDocTask.new(:rdoc) do |rdoc|
13 rdoc.rdoc_dir = 'rdoc'
14 rdoc.title = 'Formtastic'
15 rdoc.options << '--line-numbers' << '--inline-source'
8e2ca3a1 »
2009-02-17 modified Rakefile to build with README.textile
16 rdoc.rdoc_files.include('README.textile')
dcf8bebb » Justin French
2008-04-07 Initial Commit
17 rdoc.rdoc_files.include('lib/**/*.rb')
18 end
7fef4132 »
2008-09-20 added a rake task 'specdoc' for running the specs with specdoc format…
19
34848c4a » sobrinho
2010-09-30 Cleanup Rakefile
20 desc 'Test the formtastic plugin.'
21 RSpec::Core::RakeTask.new('spec') do |t|
22 t.pattern = FileList['spec/**/*_spec.rb']
a27aa2ba »
2008-11-15 Added in a Rake task for running the specs with rcov, plus a line in …
23 end
b77e11ad » yabawock
2010-04-15 Make Rakefile compatible with rails2 & rails3
24
bd81cc74 »
2011-03-18 Added a rspec:inputs task for testing just the inputs that I'm focusi…
25 desc 'Test the formtastic inputs.'
26 RSpec::Core::RakeTask.new('spec:inputs') do |t|
10b7d3a9 »
2011-03-18 include check_boxes in inputs spec rake task
27 t.pattern = FileList['spec/inputs/*_spec.rb']
bd81cc74 »
2011-03-18 Added a rspec:inputs task for testing just the inputs that I'm focusi…
28 end
29
34848c4a » sobrinho
2010-09-30 Cleanup Rakefile
30 desc 'Test the formtastic plugin with specdoc formatting and colors'
31 RSpec::Core::RakeTask.new('specdoc') do |t|
32 t.pattern = FileList['spec/**/*_spec.rb']
33 end
b77e11ad » yabawock
2010-04-15 Make Rakefile compatible with rails2 & rails3
34
34848c4a » sobrinho
2010-09-30 Cleanup Rakefile
35 desc 'Run all examples with RCov'
050ef126 »
2011-03-29 Added new rcov tasks, made spec_and_verify_coverage the default rake …
36 RSpec::Core::RakeTask.new('rcov') do |t|
34848c4a » sobrinho
2010-09-30 Cleanup Rakefile
37 t.pattern = FileList['spec/**/*_spec.rb']
38 t.rcov = true
050ef126 »
2011-03-29 Added new rcov tasks, made spec_and_verify_coverage the default rake …
39 t.rcov_opts = %w(--exclude gems/*,spec/*,.bundle/*, --aggregate coverage.data)
40 end
41
42 RCov::VerifyTask.new(:verify_coverage) do |t|
43 t.require_exact_threshold = false
503b22de »
2011-04-05 Tired of fiddling with coverage, 95% will do for now.
44 t.threshold = 95
050ef126 »
2011-03-29 Added new rcov tasks, made spec_and_verify_coverage the default rake …
45 end
46
47 desc "Run all examples and verify coverage"
48 task :spec_and_verify_coverage => [:rcov, :verify_coverage] do
b77e11ad » yabawock
2010-04-15 Make Rakefile compatible with rails2 & rails3
49 end
Something went wrong with that request. Please try again.