Invoking the same rake task twice in RSpec
if a rake task has already been invoked once it won't run again unless you call:
@rake[@task_name].reenable
or invoke it with
@rake[@task_name].execute
To adding to Guy Segev answer I prefer adding this to your spec file
after(:each) do
Rake::Task["task:name"].reenable
end