spec/shelly/cli/backup_spec.rb in shelly-0.4.24 vs spec/shelly/cli/backup_spec.rb in shelly-0.4.25

- old
+ new

@@ -156,9 +156,20 @@ it "should ensure user has logged in" do hooks(@backup, :create).should include(:logged_in?) end + context "for aliases" do + it "should respond to 'new' alias" do + @app.should_receive(:request_backup) + invoke(@backup, :new) + end + + it "should ensure user has logged in for 'new' alias" do + hooks(@backup, :new).should include(:logged_in?) + end + end + # multiple_clouds is tested in main_spec.rb in describe "#start" block it "should ensure multiple_clouds check" do @app.stub(:request_backup) @backup.should_receive(:multiple_clouds).and_return(@app) invoke(@backup, :create)