-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added panamax image filtering and more detailed exception reporting
- Loading branch information
Showing
8 changed files
with
133 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,10 @@ | |
border: none; | ||
cursor: default; | ||
} | ||
|
||
&:after { | ||
@include icon-light-grey; | ||
} | ||
} | ||
} | ||
} | ||
|
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
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,5 @@ | ||
module ImagesHelper | ||
def panamax_image?(image) | ||
'centurylink/panamax-ui'.match(image.name) || 'centurylink/panamax-api'.match(image.name) | ||
end | ||
end |
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
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
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
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,29 @@ | ||
require 'spec_helper' | ||
|
||
describe ImagesHelper do | ||
describe '#panamax_image?' do | ||
let(:panamax_ui) do | ||
double(:panamax_ui, id: 1, name: 'centurylink/panamax-ui') | ||
end | ||
|
||
let(:panamax_api) do | ||
double(:panamax_api, id: 2, name: 'centurylink/panamax-api') | ||
end | ||
|
||
let(:not_panamax) do | ||
double(:not_panamax, id: 3, name: 'blah/blah-api') | ||
end | ||
|
||
it 'returns true if image name is centurylink/panamax-ui' do | ||
expect(panamax_image? panamax_ui).to be_true | ||
end | ||
|
||
it 'returns true if image name is centurylink/panamax-api' do | ||
expect(panamax_image? panamax_api).to be_true | ||
end | ||
|
||
it 'returns false if image name is not a panamax image' do | ||
expect(panamax_image? not_panamax).to be_false | ||
end | ||
end | ||
end |
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