Skip to content

Commit

Permalink
Ensure that the default case for capacity still works
Browse files Browse the repository at this point in the history
  • Loading branch information
imtayadeway committed Apr 10, 2018
1 parent c858e35 commit 4c32131
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/models/miq_report/formats_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
end

it "can find overrides for specific paths" do
# The default case:
expect(described_class.default_format_for_path("MiqScsiLuns-capacity", :bigint)).to eq(:bytes_human)

# The overrides:
expect(described_class.default_format_for_path("ContainerVolume-capacity", :text)).to be_nil
expect(described_class.default_format_for_path("ContainerVolumeKubernetes-capacity", :text)).to be_nil
expect(described_class.default_format_for_path("PersistentVolume-capacity", :text)).to be_nil
Expand Down

0 comments on commit 4c32131

Please sign in to comment.