Open danp opened 2 days ago
Maybe related to #398, just got this on main:
2) test change_location/2 change using smart input (BikeBrigade.Locations.LocationTest) Error: test/bike_brigade/location_test.exs:104 match (=) failed The following variables were pinned: postal = "M4P" coords = %Geo.Point{coordinates: {-79.39222869999999, 43.7077809}, srid: nil, properties: %{}} address = "171 Eglinton Ave E" code: assert {:ok, %{address: ^address, postal: ^postal, coords: ^coords}} = Location.change_location(%Location{}, :smart_input, postal) |> Ecto.Changeset.apply_action(:update) left: {:ok, %{address: ^address, postal: ^postal, coords: ^coords}} right: {:ok, %BikeBrigade.Locations.Location{ __meta__: #Ecto.Schema.Metadata<:built, "locations">, id: nil, coords: nil, address: nil, city: "Toronto", postal: "M4P", province: "Ontario", country: "Canada", unit: nil, buzzer: nil, location_neighborhood: #Ecto.Association.NotLoaded<association :location_neighborhood is not loaded>, neighborhood: #Ecto.Association.NotLoaded<association :neighborhood is not loaded>, rider: #Ecto.Association.NotLoaded<association :rider is not loaded>, campaign: #Ecto.Association.NotLoaded<association :campaign is not loaded>, task_dropoff: #Ecto.Association.NotLoaded<association :task_dropoff is not loaded>, task_pickup: #Ecto.Association.NotLoaded<association :task_pickup is not loaded>, opportunity: #Ecto.Association.NotLoaded<association :opportunity is not loaded>, inserted_at: nil, updated_at: nil }} stacktrace: test/bike_brigade/location_test.exs:123: (test)
Maybe related to #398, just got this on main: