From 04062770a44cb75e0ebf1193883c61bd9f2216b8 Mon Sep 17 00:00:00 2001 From: geemus Date: Wed, 31 Jul 2013 09:35:16 -0500 Subject: [PATCH] fix inner/outer variable shadowing was causing errors in 1.8.7 --- tests/digitalocean/requests/compute/list_ssh_keys_tests.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/digitalocean/requests/compute/list_ssh_keys_tests.rb b/tests/digitalocean/requests/compute/list_ssh_keys_tests.rb index 4d7ce9f3a..00ab14cd0 100644 --- a/tests/digitalocean/requests/compute/list_ssh_keys_tests.rb +++ b/tests/digitalocean/requests/compute/list_ssh_keys_tests.rb @@ -7,7 +7,7 @@ Shindo.tests('Fog::Compute[:digitalocean] | list_ssh_keys request', ['digitaloce tests('success') do - key = service.create_ssh_key 'fookey', 'ssh-dss FOO' + ssh_key = service.create_ssh_key 'fookey', 'ssh-dss FOO' tests('#list_ssh_keys') do service.list_ssh_keys.body['ssh_keys'].each do |key| @@ -17,7 +17,7 @@ Shindo.tests('Fog::Compute[:digitalocean] | list_ssh_keys request', ['digitaloce end end - service.destroy_ssh_key(key.body['ssh_key']['id']) + service.destroy_ssh_key(ssh_key.body['ssh_key']['id']) end