Sha256: 45626579cdf354ad943b19975c63119d63f85e14a1868d1e3c05fc3a4677250c
Contents?: true
Size: 745 Bytes
Versions: 15
Compression:
Stored size: 745 Bytes
Contents
# frozen_string_literal: true require 'bundler/gem_tasks' require 'rspec/core/rake_task' require 'rubocop/rake_task' desc 'Run all specs' task :spec do ENV['YNAB_CONVERT_ENV'] = 'test' RSpec::Core::RakeTask.new(:spec) do |t| t.pattern = Dir.glob('spec/**/*_spec.rb') t.rspec_opts = '--format documentation' end end desc 'Run all tests (synonym for spec)' task :test do Rake::Task[:spec].invoke end namespace 'spec' do desc 'Enable debug logging' task :debug do ENV['YNAB_CONVERT_DEBUG'] = 'true' Rake::Task[:spec].invoke end end desc 'Check code format' RuboCop::RakeTask.new desc 'Run tests and check code format' task :ci do Rake::Task[:spec].invoke Rake::Task[:rubocop].invoke end task default: :ci
Version data entries
15 entries across 15 versions & 1 rubygems