Sha256: 580b85485df5b91f4395033e2310eceefaaf305885912fda0f3a22d53cb8168a

Contents?: true

Size: 978 Bytes

Versions: 279

Compression:

Stored size: 978 Bytes

Contents

require 'spec_helper'
require 'dpl/provider/dot_cloud'

describe DPL::Provider::DotCloud do
  subject :provider do
    described_class.new(DummyContext.new, :app => 'example', :api_key => 'foo')
  end

  describe "#check_auth" do
    example do
      expect(provider.context).to receive(:shell).with("echo foo | dotcloud setup --api-key")
      provider.check_auth
    end
  end

  describe "#check_app" do
    example do
      expect(provider.context).to receive(:shell).with("dotcloud connect example")
      provider.check_app
    end
  end

  describe "#needs_key?" do
    example do
      expect(provider.needs_key?).to eq(false)
    end
  end

  describe "#push_app" do
    example do
      expect(provider.context).to receive(:shell).with("dotcloud push example")
      provider.push_app
    end
  end

  describe "#run" do
    example do
      expect(provider.context).to receive(:shell).with("dotcloud -A example www test")
      provider.run("test")
    end
  end
end

Version data entries

279 entries across 279 versions & 1 rubygems

Version Path
dpl-1.8.13.travis.1528.4 spec/provider/dotcloud_spec.rb
dpl-1.8.15.travis.1385.4 spec/provider/dotcloud_spec.rb
dpl-1.8.15.travis.1379.4 spec/provider/dotcloud_spec.rb
dpl-1.8.15.travis.1378.4 spec/provider/dotcloud_spec.rb
dpl-1.8.15.travis.1375.4 spec/provider/dotcloud_spec.rb
dpl-1.8.15.travis.1374.4 spec/provider/dotcloud_spec.rb
dpl-1.8.15.travis.1358.4 spec/provider/dotcloud_spec.rb
dpl-1.8.15.travis.1349.4 spec/provider/dotcloud_spec.rb
dpl-1.8.15.travis.1336.4 spec/provider/dotcloud_spec.rb
dpl-1.8.15.travis.1329.4 spec/provider/dotcloud_spec.rb
dpl-1.8.15.travis.1317.4 spec/provider/dotcloud_spec.rb
dpl-1.8.14 spec/provider/dotcloud_spec.rb
dpl-1.8.14.travis.1316.4 spec/provider/dotcloud_spec.rb
dpl-1.8.14.travis.1314.4 spec/provider/dotcloud_spec.rb
dpl-1.8.13 spec/provider/dotcloud_spec.rb
dpl-1.8.13.travis.1313.4 spec/provider/dotcloud_spec.rb
dpl-1.8.13.travis.1311.4 spec/provider/dotcloud_spec.rb
dpl-1.8.13.travis.1306.4 spec/provider/dotcloud_spec.rb
dpl-1.8.13.travis.1301.4 spec/provider/dotcloud_spec.rb
dpl-1.8.12.travis.1300.4 spec/provider/dotcloud_spec.rb