Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 35 lines (29 sloc) 0.945 kb
0a59e0c @yabawock Always use # encoding: utf-8 declaration
yabawock authored
1 # encoding: utf-8
b77e11a @yabawock Make Rakefile compatible with rails2 & rails3
yabawock authored
2 require 'rubygems'
dcf8beb Initial Commit
Justin French authored
3 require 'rake'
4 require 'rake/rdoctask'
34848c4 @sobrinho Cleanup Rakefile
sobrinho authored
5 require 'rspec/core/rake_task'
dcf8beb Initial Commit
Justin French authored
6
281dd18 @xaviershay rspec support - test_helper and rake task
xaviershay authored
7 desc 'Default: run unit specs.'
8 task :default => :spec
dcf8beb Initial Commit
Justin French authored
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'
8e2ca3a @justinfrench modified Rakefile to build with README.textile
authored
15 rdoc.rdoc_files.include('README.textile')
dcf8beb Initial Commit
Justin French authored
16 rdoc.rdoc_files.include('lib/**/*.rb')
17 end
7fef413 @justinfrench added a rake task 'specdoc' for running the specs with specdoc formattin...
authored
18
34848c4 @sobrinho Cleanup Rakefile
sobrinho authored
19 desc 'Test the formtastic plugin.'
20 RSpec::Core::RakeTask.new('spec') do |t|
21 t.pattern = FileList['spec/**/*_spec.rb']
a27aa2b @justinfrench Added in a Rake task for running the specs with rcov, plus a line in .gi...
authored
22 end
b77e11a @yabawock Make Rakefile compatible with rails2 & rails3
yabawock authored
23
34848c4 @sobrinho Cleanup Rakefile
sobrinho authored
24 desc 'Test the formtastic plugin with specdoc formatting and colors'
25 RSpec::Core::RakeTask.new('specdoc') do |t|
26 t.pattern = FileList['spec/**/*_spec.rb']
27 end
b77e11a @yabawock Make Rakefile compatible with rails2 & rails3
yabawock authored
28
34848c4 @sobrinho Cleanup Rakefile
sobrinho authored
29 desc 'Run all examples with RCov'
30 RSpec::Core::RakeTask.new('examples_with_rcov') do |t|
31 t.pattern = FileList['spec/**/*_spec.rb']
32 t.rcov = true
33 t.rcov_opts = ['--exclude', 'spec,Library']
b77e11a @yabawock Make Rakefile compatible with rails2 & rails3
yabawock authored
34 end
Something went wrong with that request. Please try again.