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

17 lines
327 B
Ruby
Raw Normal View History

2010-02-16 23:05:36 -05:00
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