Permalink
Browse files

Update bin/gt to use new class method for download

Update feature steps accordingly
  • Loading branch information...
catsby committed Feb 13, 2011
1 parent 025550e commit 14dd6de75a5f9c911c288541421b85c71763a46c
Showing with 3 additions and 4 deletions.
  1. +1 −2 bin/gt
  2. +2 −2 features/step_definitions/gt_scp_steps.rb
3 bin/gt
@@ -46,5 +46,4 @@ case ARGV.size
exit(1)
end

downloader = GrowlTransfer::GTScp.new(STDOUT)
downloader.download(options['remote'], options['local'])
GrowlTransfer::Download(options['remote'], options['local'])
@@ -39,8 +39,8 @@ def output
end

When /^I run "([^"]*)"$/ do |arg1|
gd_scp = GrowlTransfer::GTScp.new(output)
gd_scp.download(@remote.join(':'), TEST_DIR)
GrowlTransfer::DEFAULTS.merge!({'output'=>output})
GrowlTransfer::Download(@remote.join(':'), TEST_DIR)
end

Then /^I should see "([^"]*)"$/ do |status|

0 comments on commit 14dd6de

Please sign in to comment.