Sha256: e8729ae2accb4d0f884da500420ad44e5fdff5892a4d27ef0c958f9b1ca67e4d
Contents?: true
Size: 697 Bytes
Versions: 3
Compression:
Stored size: 697 Bytes
Contents
require 'spec_helper' module Aeolus module Image module Factory describe ProviderImage do it "should return nil when a builder is found but operation is build" do @builder = mock(Builder, :operation => "build", :status => "PUSHING") Builder.stub!(:find).and_return(@builder) ProviderImage.status("1234").should == nil end it "should return a builder when a builder is found and operation is push" do @builder = mock(Builder, :operation => "push", :status => "PUSHING") Builder.stub!(:find).and_return(@builder) ProviderImage.status("1234").should == "PUSHING" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aeolus-image-0.7.0 | spec/models/factory/provider_image_spec.rb |
aeolus-image-0.5.1 | spec/models/factory/provider_image_spec.rb |
aeolus-image-0.4.0 | spec/models/factory/provider_image_spec.rb |