Sha256: e04ce0112751a611e6abc82a2671b49e8d3497f84f7ca2121dfa66f4bf1a814c

Contents?: true

Size: 950 Bytes

Versions: 84

Compression:

Stored size: 950 Bytes

Contents

require 'spec_helper'
require 'dpl/provider/appfog'

describe DPL::Provider::Appfog do
  subject :provider do
    described_class.new(DummyContext.new, :email => 'blah@foo.com', :password => 'bar')
  end

  describe :check_auth do
    example do
      provider.context.should_receive(:shell).with("af login --email=blah@foo.com --password=bar")
      provider.check_auth
    end
  end

  describe :needs_key? do
    example do
      provider.needs_key?.should == false
    end
  end

  describe :push_app do
    example "Without :app" do
      provider.context.should_receive(:shell).with("af update dpl")
      provider.context.should_receive(:shell).with("af logout")
      provider.push_app
    end
    example "With :app" do
      provider.options.update(:app => 'test')
      provider.context.should_receive(:shell).with("af update test")
      provider.context.should_receive(:shell).with("af logout")
      provider.push_app
    end
  end
end

Version data entries

84 entries across 84 versions & 1 rubygems

Version Path
dpl-1.6.1.travis.447.1 spec/provider/appfog_spec.rb
dpl-1.6.0 spec/provider/appfog_spec.rb
dpl-1.5.11.travis.445.1 spec/provider/appfog_spec.rb
dpl-1.5.11.travis.437.1 spec/provider/appfog_spec.rb
dpl-1.5.11.travis.436.1 spec/provider/appfog_spec.rb
dpl-1.5.11.travis.435.1 spec/provider/appfog_spec.rb
dpl-1.5.11.travis.432.1 spec/provider/appfog_spec.rb
dpl-1.5.11.travis.430.1 spec/provider/appfog_spec.rb
dpl-1.5.11.travis.414.1 spec/provider/appfog_spec.rb
dpl-1.5.10 spec/provider/appfog_spec.rb
dpl-1.5.10.travis.413.1 spec/provider/appfog_spec.rb
dpl-1.5.10.travis.402.1 spec/provider/appfog_spec.rb
dpl-1.6.0.travis.399.1 spec/provider/appfog_spec.rb
dpl-1.5.9 spec/provider/appfog_spec.rb
dpl-1.5.9.travis.397.1 spec/provider/appfog_spec.rb
dpl-1.5.9.travis.394.1 spec/provider/appfog_spec.rb
dpl-1.5.9.travis.393.1 spec/provider/appfog_spec.rb
dpl-1.5.9.travis.390.1 spec/provider/appfog_spec.rb
dpl-1.5.9.travis.373.1 spec/provider/appfog_spec.rb
dpl-1.5.9.travis.372.1 spec/provider/appfog_spec.rb