@@ -55,7 +55,7 @@ public void shouldReturnErrorValidatorReturnsErrors() {
55
55
String path = booksController .processSubmit (modelMap ,
56
56
borrowFormData , mockBindingResult );
57
57
58
- assertThat (path , is ("/ borrow" ));
58
+ assertThat (path , is ("borrow" ));
59
59
assertEquals (borrowFormData , modelMap .get ("borrowFormData" ));
60
60
}
61
61
@@ -69,7 +69,7 @@ public void shouldBorrowBook() {
69
69
String path = booksController .processSubmit (modelMap ,
70
70
borrowFormData , mockBindingResult );
71
71
72
- assertThat (path , is ("/ home" ));
72
+ assertThat (path , is ("home" ));
73
73
assertThat (
testBook .
getCurrentBorrowing ().
getBorrowerEmailAddress (),
is (
"[email protected] " ));
74
74
75
75
verify (mockBindingResult ).hasErrors ();
@@ -82,7 +82,7 @@ public void shouldReturnErrorIfNoBookIsBorrowable() {
82
82
String path = booksController .processSubmit (modelMap ,
83
83
borrowFormData , mockBindingResult );
84
84
85
- assertThat (path , is ("/ borrow" ));
85
+ assertThat (path , is ("borrow" ));
86
86
assertEquals (borrowFormData , modelMap .get ("borrowFormData" ));
87
87
verify (mockBindingResult ).rejectValue ("isbn" , "notBorrowable" );
88
88
}
0 commit comments