Sha256: 336336870116f39eac8ed276124045637502eeb4a10d858c40d3bbc53868097b

Contents?: true

Size: 947 Bytes

Versions: 123

Compression:

Stored size: 947 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
      provider.context.should_receive(:shell).with("echo foo | dotcloud setup --api-key")
      provider.check_auth
    end
  end

  describe :check_app do
    example do
      provider.context.should_receive(:shell).with("dotcloud connect example")
      provider.check_app
    end
  end

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

  describe :push_app do
    example do
      provider.context.should_receive(:shell).with("dotcloud push example")
      provider.push_app
    end
  end

  describe :run do
    example do
      provider.context.should_receive(:shell).with("dotcloud -A example www test")
      provider.run("test")
    end
  end
end

Version data entries

123 entries across 123 versions & 1 rubygems

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