1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00
haml--haml/Rakefile
2015-03-30 21:01:57 +09:00

34 lines
692 B
Ruby

require 'bundler/gem_tasks'
desc 'Run benchmarks'
task :bench do
exit system('bundle exec ruby benchmarks/benchmark.rb')
end
desc 'Run RSpec code examples'
task :spec do
exit system('bundle exec rspec --pattern spec/hamlit/**{,/\*/\*\*\}/\*_spec.rb')
end
namespace :spec do
namespace :update do
desc 'Generate converted ugly haml-spec'
task :ugly do
system('cd spec && rake ugly')
end
desc 'Generate converted pretty haml-spec'
task :pretty do
system('cd spec && rake pretty')
end
end
end
namespace :rails do
desc 'Run Rails specs'
task :spec do
exit system('cd spec/rails && rake spec')
end
end
task default: [:spec, 'rails:spec']