Skip to content

Commit

Permalink
Remove expectation for queue_power_calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
djberg96 committed Jun 4, 2019
1 parent 9bbf07b commit 4dd46cd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions spec/models/service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,14 @@

it "queues a power calculation if the next_group_index is nil" do
expect(@service).to receive(:next_group_index).and_return(nil)
expect(@service).to receive(:queue_power_calculation).never
expect(MiqEvent).to receive(:raise_evm_event).with(@service, :service_started)

@service.process_group_action(:start, 0, 1)
end

it "does not queue a power calculation if the next_group_index is not nil" do
expect(@service).to receive(:next_group_index).and_return(1)
expect(@service).to receive(:queue_power_calculation).never
expect(@service).to receive(:queue_group_action).once
expect(MiqEvent).to receive(:raise_evm_event).with(@service, :service_started).never

@service.process_group_action(:start, 0, 1)
end
end
Expand Down

0 comments on commit 4dd46cd

Please sign in to comment.