Skip to content
This repository
Newer
Older
100644 39 lines (33 sloc) 1.125 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'
dcf8bebb » Justin French
2008-04-07 Initial Commit
6
281dd186 » xaviershay
2008-07-05 rspec support - test_helper and rake task
7 desc 'Default: run unit specs.'
8 task :default => :spec
dcf8bebb » Justin French
2008-04-07 Initial Commit
9
10 desc 'Generate documentation for the formtastic plugin.'
11 Rake::RDocTask.new(:rdoc) do |rdoc|
12 rdoc.rdoc_dir = 'rdoc'
13 rdoc.title = 'Formtastic'
14 rdoc.options << '--line-numbers' << '--inline-source'
8e2ca3a1 »
2009-02-17 modified Rakefile to build with README.textile
15 rdoc.rdoc_files.include('README.textile')
dcf8bebb » Justin French
2008-04-07 Initial Commit
16 rdoc.rdoc_files.include('lib/**/*.rb')
17 end
7fef4132 »
2008-09-20 added a rake task 'specdoc' for running the specs with specdoc format…
18
34848c4a » sobrinho
2010-09-30 Cleanup Rakefile
19 desc 'Test the formtastic plugin.'
20 RSpec::Core::RakeTask.new('spec') do |t|
21 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 …
22 end
b77e11ad » yabawock
2010-04-15 Make Rakefile compatible with rails2 & rails3
23
bd81cc74 »
2011-03-18 Added a rspec:inputs task for testing just the inputs that I'm focusi…
24 desc 'Test the formtastic inputs.'
25 RSpec::Core::RakeTask.new('spec:inputs') do |t|
26 t.pattern = FileList['spec/inputs/*_spec.rb'] - ["spec/inputs/check_boxes_input_spec.rb"]
27 end
28
34848c4a » sobrinho
2010-09-30 Cleanup Rakefile
29 desc 'Test the formtastic plugin with specdoc formatting and colors'
30 RSpec::Core::RakeTask.new('specdoc') do |t|
31 t.pattern = FileList['spec/**/*_spec.rb']
32 end
b77e11ad » yabawock
2010-04-15 Make Rakefile compatible with rails2 & rails3
33
34848c4a » sobrinho
2010-09-30 Cleanup Rakefile
34 desc 'Run all examples with RCov'
35 RSpec::Core::RakeTask.new('examples_with_rcov') do |t|
36 t.pattern = FileList['spec/**/*_spec.rb']
37 t.rcov = true
38 t.rcov_opts = ['--exclude', 'spec,Library']
b77e11ad » yabawock
2010-04-15 Make Rakefile compatible with rails2 & rails3
39 end
Something went wrong with that request. Please try again.