Sha256: b9f1759d8579dc617b396778b5e880989729a2251156c041b87a8e4bd27ba169

Contents?: true

Size: 234 Bytes

Versions: 12

Compression:

Stored size: 234 Bytes

Contents

['db:schema:load', 'db:migrate', 'db:reset'].each do |task|
  Rake::Task[task].enhance do
    Rake::Task['rebuild_mocks'].invoke
  end
end

task rebuild_mocks: :environment do
  puts 'rebuilding mocks'
  ActiveMocker::Generate.new
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
active_mocker-1.2 sample_app_rails_4/lib/tasks/mocks.rake
active_mocker-1.2.pre.11 sample_app_rails_4/lib/tasks/mocks.rake
active_mocker-1.2.pre.10 sample_app_rails_4/lib/tasks/mocks.rake
active_mocker-1.2.pre.9 sample_app_rails_4/lib/tasks/mocks.rake
active_mocker-1.2.pre.8 sample_app_rails_4/lib/tasks/mocks.rake
active_mocker-1.2.pre.7 sample_app_rails_4/lib/tasks/mocks.rake
active_mocker-1.2.pre.6 sample_app_rails_4/lib/tasks/mocks.rake
active_mocker-1.2.pre.5 sample_app_rails_4/lib/tasks/mocks.rake
active_mocker-1.2.pre.4 sample_app_rails_4/lib/tasks/mocks.rake
active_mocker-1.2.pre.3 sample_app_rails_4/lib/tasks/mocks.rake
active_mocker-1.2.pre.2 sample_app_rails_4/lib/tasks/mocks.rake
active_mocker-1.2.pre.1 sample_app_rails_4/lib/tasks/mocks.rake