Skip to content

Commit

Permalink
Spec for the disk name display
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalis committed Nov 8, 2017
1 parent b9bf584 commit e7c4255
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/helpers/textual_mixins/textual_devices_spec.rb
Expand Up @@ -35,6 +35,18 @@
end
it { is_expected.not_to be_empty }
end

context "with hdd with no size_on_disk collected (AZURE)" do
let(:hw) do
FactoryGirl.create(:hardware,
:disks => [FactoryGirl.create(:disk,
:device_type => "disk",
:size => "1072693248",
:controller_type => "AZURE")])
end
it { expect(subject[0][:name]).to include("Hard Disk (AZURE ), Size 1072693248") }
it { expect(subject[0][:name]).not_to include("Percent Used Provisioned Space") }
end
end

describe "#network_attributes" do
Expand Down

0 comments on commit e7c4255

Please sign in to comment.