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