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

- old
+ new

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