Permalink
Browse files

Stub out pbpaste

  • Loading branch information...
1 parent efa0cfe commit c17628971d54fc5833dfbd8a1ca4028f30aedfa8 @txus txus committed Apr 20, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 spec/gram/ssh_spec.rb
View
@@ -6,6 +6,7 @@ module Gram
describe ".paste" do
it 'pastes a post to a peer' do
subject.stub(:get_peers).and_return({"josepjaume" => "192.168.1.55.55"})
+ subject.stub(:system)
subject.should_receive(:system).with("pbpaste | ssh josepjaume@192.168.1.55.55 pbcopy")
subject.paste 'josepjaume'

0 comments on commit c176289

Please sign in to comment.