This could possibly go in multiple ways. If she just randomly leaves her job without letting anyone know to go to her spin class, she will most likely get fired for not letting anyone know that she left.
However, if she asks her boss about possibly leaving early and her boss gives her the answer yes. Than that is fine for her to do. Now, if her boss says no, than she should stay or else she will get fired.