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.5.8 spec/provider/appfog_spec.rb
dpl-1.5.9.travis.368.1 spec/provider/appfog_spec.rb
dpl-1.5.8.travis.367.1 spec/provider/appfog_spec.rb
dpl-1.5.8.travis.365.1 spec/provider/appfog_spec.rb
dpl-1.5.8.travis.364.1 spec/provider/appfog_spec.rb
dpl-1.5.8.travis.359.1 spec/provider/appfog_spec.rb
dpl-1.5.8.travis.356.1 spec/provider/appfog_spec.rb
dpl-1.5.8.travis.336.1 spec/provider/appfog_spec.rb
dpl-1.5.8.travis.330.1 spec/provider/appfog_spec.rb
dpl-1.5.8.travis.328.1 spec/provider/appfog_spec.rb
dpl-1.5.8.travis.326.1 spec/provider/appfog_spec.rb
dpl-1.5.8.travis.325.1 spec/provider/appfog_spec.rb
dpl-1.5.8.travis.312.1 spec/provider/appfog_spec.rb
dpl-1.5.8.travis.309.1 spec/provider/appfog_spec.rb
dpl-1.5.8.travis.308.1 spec/provider/appfog_spec.rb
dpl-1.5.8.travis.303.1 spec/provider/appfog_spec.rb
dpl-1.5.7 spec/provider/appfog_spec.rb
dpl-1.5.6 spec/provider/appfog_spec.rb
dpl-1.5.5 spec/provider/appfog_spec.rb
dpl-1.5.5.travis.270.1 spec/provider/appfog_spec.rb