mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
3a8b77d1a1
- added XML tests - renamed should_be_a_resource to should_be_restful git-svn-id: https://svn.thoughtbot.com/plugins/shoulda/trunk@132 7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
20 lines
557 B
Ruby
20 lines
557 B
Ruby
require 'rake'
|
|
require 'rake/testtask'
|
|
require 'rake/rdoctask'
|
|
|
|
Rake::TestTask.new do |t|
|
|
t.libs << 'lib'
|
|
t.pattern = 'test/{unit,functional}/**/*_test.rb' # Update this line
|
|
t.verbose = true
|
|
end
|
|
|
|
Rake::RDocTask.new { |rdoc|
|
|
rdoc.rdoc_dir = 'doc'
|
|
rdoc.title = "Shoulda -- Making your tests easy on the fingers and eyes"
|
|
rdoc.options << '--line-numbers' << '--inline-source'
|
|
rdoc.template = "#{ENV['template']}.rb" if ENV['template']
|
|
rdoc.rdoc_files.include('README', 'lib/**/*.rb')
|
|
}
|
|
|
|
desc 'Default: run tests.'
|
|
task :default => ['test']
|