Sha256: 5401bd4ba72bc0045d8e71f2038f9a794571fca372daf565a4803312e73e63d9
Contents?: true
Size: 702 Bytes
Versions: 1
Compression:
Stored size: 702 Bytes
Contents
require 'spec_helper' module Gram describe Ssh do describe ".paste" do it 'pastes a post to a peer' do subject.stub(:get_peers).and_return({"josepjaume" => "192.168.1.55.55"}) subject.should_receive(:system).with("pbpaste | ssh josepjaume@192.168.1.55.55 pbcopy") subject.paste 'josepjaume' end end describe ".broadcast" do it 'pastes a post to every peer' do subject.stub(:get_peers).and_return({"josepjaume" => "192.168.1.55.55", "oriol" => "192.168.1.55.54"}) subject.should_receive(:paste).with("josepjaume") subject.should_receive(:paste).with("oriol") subject.broadcast end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gram-0.3.0 | spec/gram/ssh_spec.rb |