1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/spec/shared_examples/flavors_examples.rb
geemus (Wesley Beary) 956177f235 flavors specs
2010-02-16 20:05:36 -08:00

16 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