Skip to content

Commit 455543d

Browse files
authored
Merge pull request #59 from delor/fix-typo
fix typo in AddBookToCatalogueTest
2 parents 9f0e35d + d29fbea commit 455543d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/test/groovy/io/pillopl/library/catalogue/AddBookToCatalogueTest.groovy

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,26 @@ class AddBookToCatalogueTest extends Specification {
1313

1414
CatalogueDatabase catalogueDatabase = Stub()
1515
DomainEvents domainEvents = Mock()
16-
Catalogue catalouge = new Catalogue(catalogueDatabase, domainEvents)
16+
Catalogue catalogue = new Catalogue(catalogueDatabase, domainEvents)
1717

1818
def 'should add a new book to catalogue'() {
1919
given:
2020
databaseWorks()
2121
when:
22-
Try<Result> result = catalouge.addBook("Eric Evans", "DDD", DDD_ISBN_STR)
22+
Try<Result> result = catalogue.addBook("Eric Evans", "DDD", DDD_ISBN_STR)
2323
then:
2424
result.isSuccess()
2525
result.get() == Result.Success
2626

2727
}
2828

29-
def 'should add a new book instance to catalouge'() {
29+
def 'should add a new book instance to catalogue'() {
3030
given:
3131
databaseWorks()
3232
and:
3333
thereIsBookWith(DDD_ISBN_STR)
3434
when:
35-
Try<Result> result = catalouge.addBookInstance(DDD_ISBN_STR, Restricted)
35+
Try<Result> result = catalogue.addBookInstance(DDD_ISBN_STR, Restricted)
3636
then:
3737
result.isSuccess()
3838
result.get() == Result.Success
@@ -47,7 +47,7 @@ class AddBookToCatalogueTest extends Specification {
4747
and:
4848
thereIsNoBookWith(DDD_ISBN_STR)
4949
when:
50-
Try<Result> result = catalouge.addBookInstance(DDD_ISBN_STR, Restricted)
50+
Try<Result> result = catalogue.addBookInstance(DDD_ISBN_STR, Restricted)
5151
then:
5252
result.isSuccess()
5353
result.get() == Result.Rejection
@@ -60,7 +60,7 @@ class AddBookToCatalogueTest extends Specification {
6060
given:
6161
databaseDoesNotWork()
6262
when:
63-
Try<Result> result = catalouge.addBook("Eric Evans", "DDD", DDD_ISBN_STR)
63+
Try<Result> result = catalogue.addBook("Eric Evans", "DDD", DDD_ISBN_STR)
6464
then:
6565
result.isFailure()
6666
}
@@ -71,7 +71,7 @@ class AddBookToCatalogueTest extends Specification {
7171
and:
7272
thereIsBookWith(DDD_ISBN_STR)
7373
when:
74-
Try<Result> result = catalouge.addBookInstance(DDD_ISBN_STR, Restricted)
74+
Try<Result> result = catalogue.addBookInstance(DDD_ISBN_STR, Restricted)
7575
then:
7676
result.isFailure()
7777
and:

0 commit comments

Comments
 (0)