I have the following chef code:
apt_update 'Ubuntu apt repo update' do
subscribes :nothing, 'apt_repository[some-repo]', :immediately
end
I'm trying to test with this code:
it 'updates apt repo' do
expect(chef_run).to update_apt_update('Ubuntu apt repo update')
end
Which fails with
expected "apt_update[Ubuntu apt repo update]" with action :update to be in Chef run.
Other apt_update resources: apt_update[Ubuntu apt repo update]
Seems like it's trying to assert my action is update, how do I make it not assume my action?