Sha256: c35605a091eb6c3670ed4867598842f7f857fce4a3b0e19b0f739a9e6da2be82

Contents?: true

Size: 327 Bytes

Versions: 117

Compression:

Stored size: 327 Bytes

Contents

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

Version data entries

117 entries across 117 versions & 2 rubygems

Version Path
fog-0.2.27 spec/shared_examples/flavors_examples.rb
fog-0.2.26 spec/shared_examples/flavors_examples.rb
fog-0.2.25 spec/shared_examples/flavors_examples.rb
fog-0.2.24 spec/shared_examples/flavors_examples.rb
tecnh-fog-0.2.23.vpc spec/shared_examples/flavors_examples.rb
fog-0.2.23 spec/shared_examples/flavors_examples.rb
fog-0.2.22 spec/shared_examples/flavors_examples.rb
fog-0.2.21 spec/shared_examples/flavors_examples.rb
fog-0.2.20 spec/shared_examples/flavors_examples.rb
fog-0.2.19 spec/shared_examples/flavors_examples.rb
fog-0.2.18 spec/shared_examples/flavors_examples.rb
fog-0.2.17 spec/shared_examples/flavors_examples.rb
fog-0.2.16 spec/shared_examples/flavors_examples.rb
fog-0.2.15 spec/shared_examples/flavors_examples.rb
fog-0.2.14 spec/shared_examples/flavors_examples.rb
fog-0.2.13 spec/shared_examples/flavors_examples.rb
fog-0.2.12 spec/shared_examples/flavors_examples.rb
fog-0.2.11 spec/shared_examples/flavors_examples.rb
fog-0.2.10 spec/shared_examples/flavors_examples.rb
fog-0.2.9 spec/shared_examples/flavors_examples.rb