Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed May 2, 2024
1 parent 6a4b69d commit f38e500
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions test/leaflet/map_data/polyline_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ defmodule Leaflet.MapData.PolylineTest do
setup do
route_pattern =
build(:route_pattern,
representative_trip_polyline:
"gfsaGvlaqL[Ek@Ck@A[?]BU?sAHg@DWDODKJMPM\\KNEQAOU`@c@`@EBC@[PeCn@g@HM@??[@cBG_BKmBIq@Eq@GyAGoAGcDQ??OAiDQoFYcCO_AEM?OA??yAIyAIeBK}AK_ACy@FiAPu@N??YFa@FSDaARw@\\UL[T??WT_B`Bm@r@e@n@Sb@_@|@gAxCq@hBIT]fACDGL??cAhBc@j@k@n@m@v@MNg@j@WX??q@v@oBxBiArA}@fAc@f@??STSTwAbBq@t@eAnAaAjA]b@qAxAMNuA~As@z@??MPsB~B{@jAgBbCgA~Ag@x@mA`C??IR[x@}@pCw@bCGP??y@vBGf@O\\}@tBSV??_AtAkAtAY`@mAzAMP??IJu@~@i@r@Y^cAtAa@h@w@fAe@n@KN??e@l@m@x@g@r@}@nAY\\w@hAg@p@OR??kBjCeB`CiA|AuAlBQV??Y^{AvBy@hAY`@w@fA??UZ]`@[\\k@b@u@^_ChAwBfAQH??uAr@{@b@uAv@yAz@a@`@??CBWXiApAaApAo@t@kAdBMX??a@~@[`AEPe@pAc@`BIZQr@??Sv@_@zAOfAAZAl@S`C]xECh@????]lEShCOjBMjB?H??UhCWfDOlBYxDMlAIf@Kd@s@lCg@zAEN??Uj@sAjDi@xAy@vBKRO`@??IT{@nBO^u@bBiAlCw@nBYh@??KRq@jBwA`DsBzE[b@KP??}@tAORc@l@o@~@uApBS`@IRMl@SnCEf@??AV}@`FQ`AOv@MhAEp@CvA?~AAl@???VCtBC|BC~CEbEAf@??Ad@[tDOpBAJaAPGdA"
representative_trip_polyline: "gfsaGvlaqL[Ek@Ck@A[?]BU?sAH"
)

%{route_pattern: route_pattern}
Expand Down
7 changes: 5 additions & 2 deletions test/route_patterns/repo_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ defmodule RoutePatterns.RepoTest do
end

test "returns nil for an unknown route pattern" do
expect(MBTA.Api.Mock, :get_json, fn "/route_patterns/unknown_route_pattern", _ ->
id = Faker.Internet.slug()

expect(MBTA.Api.Mock, :get_json, fn path, _ ->
assert path == "/route_patterns/" <> id
{:error, :not_found}
end)

refute RoutePatterns.Repo.get("unknown_route_pattern")
refute RoutePatterns.Repo.get(id)
end
end

Expand Down

0 comments on commit f38e500

Please sign in to comment.