Skip to content

Commit

Permalink
Rewrite comment into the code
Browse files Browse the repository at this point in the history
So it actually asserts for what is assumed (by comment).
  • Loading branch information
isimluk committed May 16, 2017
1 parent 30da4a6 commit 12e4b60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/models/metric_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1023,8 +1023,7 @@

it "should queue up enabled targets" do
expected_targets = Metric::Targets.capture_targets
expected_queue_count = expected_targets.count * 9 # 1 realtime, 8 historical
expect(MiqQueue.count).to eq(expected_queue_count)
expect(MiqQueue.group(:method_name).count).to eq('perf_capture_realtime' => expected_targets.count, 'perf_capture_historical' => expected_targets.count * 8)
assert_metric_targets(expected_targets)
end
end
Expand Down

0 comments on commit 12e4b60

Please sign in to comment.