-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4987 from skateman/storage-manager-quad
Add top row information into the storage manager quadicons
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
spec/decorators/manageiq/providers/storage_manager_decorator_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
describe ManageIQ::Providers::StorageManagerDecorator do | ||
describe '#quadicon' do | ||
subject { model.decorate.quadicon } | ||
|
||
context 'block storage' do | ||
let(:model) { FactoryGirl.create(:ems_cinder) } | ||
|
||
it 'includes cloud volumes and snapshots' do | ||
expect(subject[:top_left][:tooltip]).to include("Cloud Volume") | ||
expect(subject[:top_right][:tooltip]).to include("Cloud Volume Snapshot") | ||
end | ||
end | ||
|
||
context 'object storage' do | ||
let(:model) { FactoryGirl.create(:ems_swift) } | ||
|
||
it 'includes cloud object store containers' do | ||
expect(subject[:top_left][:tooltip]).to include("Cloud Object Store Container") | ||
end | ||
end | ||
end | ||
end |