spec/lib/whipped-cream/deployer_spec.rb in whipped-cream-0.0.1 vs spec/lib/whipped-cream/deployer_spec.rb in whipped-cream-0.1.0

- old
+ new

@@ -17,9 +17,17 @@ end its(:plugin_filename) { should eq(plugin_filename) } its(:pi_address) { should eq(pi_address) } + context "with a port" do + let(:pi_address) { "192.168.0.123:2222" } + + it "adds a port to the connection arguments" do + expect(deployer.connection_arguments.last[:port]).to eq("2222") + end + end + describe "#scp" do it "tries to connect with pi:raspberry" do expect(Net::SCP).to receive(:start).with( pi_address, 'pi', password: 'raspberry' )