Sha256: f5ef2cc0487ebec15dce42a54932add0e9a927dda86c8e7f6721250ecf8ddaeb
Contents?: true
Size: 555 Bytes
Versions: 11
Compression:
Stored size: 555 Bytes
Contents
namespace :active_mocker do desc('Rebuild mocks.') task :build => :environment do ActiveMocker::Generate.new end desc('Run all tests tagged active_mocker') task :test do sh 'rspec --tag active_mocker' end desc('Run all tests tagged active_mocker and rails_compatible and will disable model stubbing') task :rails_compatible do sh 'RUN_WITH_RAILS=1 rspec --tag rails_compatible' end end ['db:migrate', 'db:rollback'].each do |task| Rake::Task[task].enhance do Rake::Task['active_mocker:build'].invoke end end
Version data entries
11 entries across 11 versions & 1 rubygems