spec/shelly/cli/backup_spec.rb in shelly-0.1.24.pre vs spec/shelly/cli/backup_spec.rb in shelly-0.1.24.pre2

- old
+ new

@@ -133,10 +133,12 @@ describe "create" do before do FileUtils.mkdir_p("/projects/foo") Dir.chdir("/projects/foo") $stdout.stub(:puts) - @cloudfile = mock(:backup_databases => ['postgresql', 'mongodb'], :clouds => ['foo-staging']) + @cloud = mock(:backup_databases => ['postgresql', 'mongodb'], :code_name => "foo-staging") + Shelly::Cloud.stub(:new).and_return(@cloud) + @cloudfile = mock(:present? => true, :clouds => [@cloud]) Shelly::Cloudfile.stub(:new).and_return(@cloudfile) end it "should ensure user has logged in" do hooks(@backup, :create).should include(:logged_in?)