spec/shelly/cli/backup_spec.rb in shelly-0.4.38 vs spec/shelly/cli/backup_spec.rb in shelly-0.4.39

- old
+ new

@@ -231,11 +231,11 @@ invoke(@backup, :restore, "better.tar.gz") end end it "should restore database" do - $stdout.should_receive(:puts).with("You are about restore postgresql database for cloud foo-staging to state from better.tar.gz") + $stdout.should_receive(:puts).with("You are about to restore postgresql database for cloud foo-staging to state from better.tar.gz") $stdout.should_receive(:print).with("I want to restore the database (yes/no): ") $stdout.should_receive(:puts).with("\n") @client.stub(:restore_backup).with("todo-list-test","better.tar.gz") $stdout.should_receive(:puts).with("\n") $stdout.should_receive(:puts).with(green "Restore has been scheduled. Wait a few minutes till database is restored.") @@ -245,10 +245,10 @@ end end context "when answering no" do it "should cancel restore database" do - $stdout.should_receive(:puts).with("You are about restore postgresql database for cloud foo-staging to state from better.tar.gz") + $stdout.should_receive(:puts).with("You are about to restore postgresql database for cloud foo-staging to state from better.tar.gz") $stdout.should_receive(:print).with("I want to restore the database (yes/no): ") $stdout.should_receive(:puts).with("\n") $stdout.should_receive(:puts).with(red "Canceled") lambda {