mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
17 lines
327 B
Ruby
17 lines
327 B
Ruby
|
shared_examples_for "Flavors" do
|
||
|
|
||
|
describe "#get" do
|
||
|
|
||
|
it "should return a matching flavor if one exists" do
|
||
|
get = @flavors.get(subject.id)
|
||
|
subject.attributes.should == get.attributes
|
||
|
end
|
||
|
|
||
|
it "should return nil if no matching server exists" do
|
||
|
@flavors.get('0').should be_nil
|
||
|
end
|
||
|
|
||
|
end
|
||
|
|
||
|
end
|