From 6c38a07dd459249af57406456f095255ad2fc81a Mon Sep 17 00:00:00 2001 From: geemus <geemus@gmail.com> Date: Thu, 21 Jul 2011 16:47:36 -0500 Subject: [PATCH] [compute|aws] fix compute accessor in tests --- tests/aws/models/rds/security_group_tests.rb | 2 +- tests/aws/requests/cloud_formation/stack_tests.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/aws/models/rds/security_group_tests.rb b/tests/aws/models/rds/security_group_tests.rb index 5831e2db4..c86534597 100644 --- a/tests/aws/models/rds/security_group_tests.rb +++ b/tests/aws/models/rds/security_group_tests.rb @@ -8,7 +8,7 @@ Shindo.tests("AWS::RDS | security_group", ['aws', 'rds']) do tests("#description").returns('fog test') { @instance.description } tests("#authorize_ec2_security_group").succeeds do - @ec2_sec_group = Compute[:aws].security_groups.create(:name => 'fog-test', :description => 'fog test') + @ec2_sec_group = Fog::Compute[:aws].security_groups.create(:name => 'fog-test', :description => 'fog test') @instance.authorize_ec2_security_group(@ec2_sec_group.name) returns('authorizing') do diff --git a/tests/aws/requests/cloud_formation/stack_tests.rb b/tests/aws/requests/cloud_formation/stack_tests.rb index bb4b99f31..bbdc97164 100644 --- a/tests/aws/requests/cloud_formation/stack_tests.rb +++ b/tests/aws/requests/cloud_formation/stack_tests.rb @@ -85,7 +85,7 @@ Shindo.tests('AWS::CloudFormation | stack requests', ['aws', 'cloudformation']) unless Fog.mocking? @stack_name = 'fogstack' << Time.now.to_i.to_s - @keypair = Compute[:aws].key_pairs.create(:name => 'cloudformation') + @keypair = Fog::Compute[:aws].key_pairs.create(:name => 'cloudformation') @template_url = 'https://s3.amazonaws.com/cloudformation-templates-us-east-1/EC2InstanceSample-1.0.0.template' end