Skip to content

Commit

Permalink
Fix spec for multiple rates
Browse files Browse the repository at this point in the history
as we are using one metric_rollup and changing it to get then we need to refresh
instance variables of consumption
  • Loading branch information
lpichler committed Aug 24, 2017
1 parent b97dfba commit 7b602ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/models/chargeback_vm_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,8 @@
[rate_assignment_options_1, rate_assignment_options_2].each do |rate_assignment|
metric_rollup.tag_names = rate_assignment[:tag].first.tag.send(:name_path)
uniq_rates = chargeback_vm.get(consumption)
consumption.instance_variable_set(:@tag_names, nil)
consumption.instance_variable_set(:@hash_features_affecting_rate, nil)
expect([rate_assignment[:cb_rate]]).to match_array(uniq_rates)
end
end
Expand Down

0 comments on commit 7b602ea

Please sign in to comment.