diff --git a/spec/unit_test/provider_rightscale_backup_spec.rb b/spec/unit_test/provider_rightscale_backup_spec.rb index a2d3b67..0211aab 100644 --- a/spec/unit_test/provider_rightscale_backup_spec.rb +++ b/spec/unit_test/provider_rightscale_backup_spec.rb @@ -59,11 +59,18 @@ 'rel' => 'cloud', 'href' => 'some_cloud_href' }], - :href => 'some_href' + :href => 'some_href', + :cloud => cloud_stub ) instance end + let(:cloud_stub) do + cloud = double('cloud') + cloud.stub(:href => '/api/clouds/123') + cloud + end + let(:backup_stub) do backup = double('backup') backup.stub( @@ -359,7 +366,8 @@ def create_test_volume_type(name, href) "latest_before==#{timestamp.utc.strftime('%Y/%m/%d %H:%M:%S %z')}", "committed==true", "completed==true", - "from_master==true" + "from_master==true", + "cloud_href==/api/clouds/123" ] backup_resource.should_receive(:index).with({ :lineage => 'some_lineage',