diff --git a/src/bosh-director/spec/unit/bosh/director/deployment_plan/steps/create_vm_step_spec.rb b/src/bosh-director/spec/unit/bosh/director/deployment_plan/steps/create_vm_step_spec.rb index 4f73841d84..6e084f2afa 100644 --- a/src/bosh-director/spec/unit/bosh/director/deployment_plan/steps/create_vm_step_spec.rb +++ b/src/bosh-director/spec/unit/bosh/director/deployment_plan/steps/create_vm_step_spec.rb @@ -429,7 +429,7 @@ module Steps subject.perform(report) end.to change { Models::Event.count }.from(0).to(2) - event1 = Models::Event.first + event1 = Models::Event.order(:id).first expect(event1.user).to eq('user') expect(event1.action).to eq('create') expect(event1.object_type).to eq('vm')