Sha256: fd3d2aff257a3bfc4b717b93154aeffc779a368417332f0f9697ffc02d0d16b6
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
require 'spec_helper' describe Ridley::HostConnector::Base do subject { Class.new(Ridley::HostConnector::Base).new } let(:host) { double('host') } let(:options) { Hash.new } describe "#run" do let(:command) { double('command') } it "raises a RuntimeError" do expect { subject.run(host, command, options) }.to raise_error(RuntimeError) end end describe "#bootstrap" do it "raises a RuntimeError" do expect { subject.bootstrap(host, options) }.to raise_error(RuntimeError) end end describe "#chef_client" do it "raises a RuntimeError" do expect { subject.chef_client(host, options) }.to raise_error(RuntimeError) end end describe "#put_secret" do let(:secret) { double('secret') } it "raises a RuntimeError" do expect { subject.put_secret(host, secret, options) }.to raise_error(RuntimeError) end end describe "#ruby_script" do let(:command_lines) { double('command-lines') } it "raises a RuntimeError" do expect { subject.ruby_script(host, command_lines, options) }.to raise_error(RuntimeError) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ridley-1.0.0.rc1 | spec/unit/ridley/host_connector_spec.rb |