From ef96a2db82485f0643022e51a4f7ef4fb748529f Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Tue, 6 Aug 2013 20:45:42 +0000 Subject: [PATCH] Improve naming in Remote#execute spec --- spec/producer/core/remote_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/producer/core/remote_spec.rb b/spec/producer/core/remote_spec.rb index 454f2b3..2c373cb 100644 --- a/spec/producer/core/remote_spec.rb +++ b/spec/producer/core/remote_spec.rb @@ -30,13 +30,13 @@ module Producer::Core end describe '#execute', :ssh do - let(:args) { 'some remote command' } - let(:command) { "echo #{args}" } + let(:arguments) { 'some remote command' } + let(:command) { "echo #{arguments}" } it 'executes the given command in a new channel' do story_with_new_channel do |ch| ch.sends_exec command - ch.gets_data args + ch.gets_data arguments end remote.execute command expect(story_completed?).to be @@ -45,9 +45,9 @@ module Producer::Core it 'returns the output' do story_with_new_channel do |ch| ch.sends_exec command - ch.gets_data args + ch.gets_data arguments end - expect(remote.execute(command)).to eq args + expect(remote.execute(command)).to eq arguments end end end