Skip to content

Commit

Permalink
Use correct method for short name
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Oct 31, 2023
1 parent 992fa24 commit e4de6e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void flexRouteFromCentralAtlantaToPowderSprings() {

var usesZone1Route = transitLegs
.stream()
.map(l -> l.route().shortName())
.map(l -> l.route().name())
.anyMatch(name -> name.equals("Zone 1"));

assertTrue(usesZone1Route);
Expand Down

0 comments on commit e4de6e4

Please sign in to comment.