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.5.2.travis.240.2 spec/provider/dotcloud_spec.rb
dpl-1.5.2.travis.226.2 spec/provider/dotcloud_spec.rb
dpl-1.5.2.travis.220.2 spec/provider/dotcloud_spec.rb
dpl-1.5.2.travis.218.2 spec/provider/dotcloud_spec.rb
dpl-1.5.2.travis.217.2 spec/provider/dotcloud_spec.rb
dpl-1.5.2.travis.216.2 spec/provider/dotcloud_spec.rb
dpl-1.5.2.travis.211.2 spec/provider/dotcloud_spec.rb
dpl-1.5.2.travis.208.2 spec/provider/dotcloud_spec.rb
dpl-1.5.2.travis.206.2 spec/provider/dotcloud_spec.rb
dpl-1.5.2.travis.201.2 spec/provider/dotcloud_spec.rb
dpl-1.5.2.travis.200.2 spec/provider/dotcloud_spec.rb
dpl-1.5.2.travis.197.2 spec/provider/dotcloud_spec.rb
dpl-1.5.2.travis.196.2 spec/provider/dotcloud_spec.rb
dpl-1.5.2.travis.194.2 spec/provider/dotcloud_spec.rb
dpl-1.5.2.travis.193.2 spec/provider/dotcloud_spec.rb
dpl-1.5.2.travis.190.2 spec/provider/dotcloud_spec.rb
dpl-1.5.2.travis.188.2 spec/provider/dotcloud_spec.rb
dpl-1.5.2.travis.187.2 spec/provider/dotcloud_spec.rb
dpl-1.5.2.travis.184.2 spec/provider/dotcloud_spec.rb
dpl-1.5.2.travis.183.2 spec/provider/dotcloud_spec.rb