Sha256: 2a488217fafac60684f9ea4b1cb1c216bba81fb4aabdb3dc4cc485a40ce40fd6
Contents?: true
Size: 493 Bytes
Versions: 2
Compression:
Stored size: 493 Bytes
Contents
require 'rake/testtask' require 'rubocop/rake_task' Rake::TestTask.new do |t| t.libs << 'test' t.warning = true t.pattern = 'test/razorpay/test_*.rb' end desc 'Run tests' task default: [:test, :rubocop] desc 'Run rubocop' task :rubocop do RuboCop::RakeTask.new end FileList['test/razorpay/test_*.rb'].each do |file| group = File.basename(file, '.rb').split('_').drop(1).join('_').to_sym Rake::TestTask.new(group) do |t| t.libs << 'test' t.test_files = [file] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
razorpay-2.1.0 | Rakefile |
razorpay-2.1.0.pre | Rakefile |