Created
May 31, 2015 15:40
-
-
Save ipolevoy/821e986c5c7deb28a90d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void shouldDeleteOnePatient(){ | |
deleteAndPopulateTables("doctors", "patients", "doctors_patients"); | |
Doctor doctor = Doctor.findById(1); | |
List<Patient> patients = doctor.getAll(Patient.class); | |
a(2).shouldBeEqual(patients.size()); | |
doctor.remove(patients.get(0)); | |
patients = doctor.getAll(Patient.class); | |
a(1).shouldBeEqual(patients.size()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not anymore!
I will try to create a test class which should demonstrate what is not working correctly.
I'll post the code here when i'm ready