Sha256: c7a1ef884a3dfa602e6f02e497ca5dc44b2990c59911821be27c8189ed07f625

Contents?: true

Size: 234 Bytes

Versions: 7

Compression:

Stored size: 234 Bytes

Contents

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
active_mocker-1.4.2 sample_app_rails_4/lib/tasks/active_mocker.rake
active_mocker-1.4.1 sample_app_rails_4/lib/tasks/active_mocker.rake
active_mocker-1.3.2 sample_app_rails_4/lib/tasks/active_mocker.rake
active_mocker-1.3.1 sample_app_rails_4/lib/tasks/active_mocker.rake
active_mocker-1.3 sample_app_rails_4/lib/tasks/active_mocker.rake
active_mocker-1.2.4 sample_app_rails_4/lib/tasks/active_mocker.rake
active_mocker-1.2.3 sample_app_rails_4/lib/tasks/active_mocker.rake