2015-03-09 10:21:28 -04:00
|
|
|
require 'bundler/gem_tasks'
|
|
|
|
|
2015-03-14 22:43:57 -04:00
|
|
|
desc 'Run benchmarks'
|
2015-03-09 02:27:16 -04:00
|
|
|
task :bench do
|
2015-03-15 11:39:02 -04:00
|
|
|
system('bundle exec ruby benchmarks/benchmark.rb')
|
2015-03-09 06:14:31 -04:00
|
|
|
end
|
2015-03-09 11:37:41 -04:00
|
|
|
|
2015-03-14 22:43:57 -04:00
|
|
|
desc 'Run RSpec code examples'
|
|
|
|
task :spec do
|
|
|
|
system('bundle exec rspec --pattern spec/hamlit/**{,/\*/\*\*\}/\*_spec.rb')
|
|
|
|
end
|
|
|
|
|
|
|
|
namespace :rails do
|
|
|
|
desc 'Run Rails specs'
|
|
|
|
task :spec do
|
|
|
|
system('cd spec/rails && rake spec')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
task default: [:spec, 'rails:spec']
|