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