Created
August 27, 2016 14:37
-
-
Save elliottwilliams/7d221fa445a81975781f66fbd2d6ae99 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"code": null, | |
"name": "Inner Loop", | |
"short_name": "19", | |
"color": null, | |
"associated_objects": { | |
"Shark::Station": [] | |
}, | |
"itinerary": null, | |
"path": null, | |
"identifier": "routes.19", | |
"description": "Inner Loop" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"identifier": "stations.BUS100W", | |
"associated_objects": {} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"saturation": 23, | |
"code": null, | |
"capacity": 60, | |
"name": "1708", | |
"route": "routes.5B", | |
"associated_objects": {}, | |
"longitude": null, | |
"heading": 0, | |
"last_station": "stations.BUS624E", | |
"latitude": null, | |
"schedule_delta": null, | |
"onboard": 14, | |
"identifier": "vehicles.1708", | |
"speed": 0, | |
"next_station": "stations.BUS100E" | |
} |
I'm just now starting to write tests for Serializable
, which should reveal any issues that are happening here.
If nothing comes out of that, then it is probably a configuration issue, though I can't see anything wrong with the current (a238997
) configuration.
1) Shark::Serializable with a default configuration includes all attributes
Failure/Error: expect(serialized).to include(:name, :list, :hash)
expected {:identifier => "dummyclasss.Main", :associated_objects => {Shark::DummyClass => ["dummyclasss.Main.1", "dummyclasss.Main.2"]}} to include :name, :list, and :hash
Diff:
@@ -1,2 +1,3 @@
-[:name, :list, :hash]
+:associated_objects => {Shark::DummyClass=>["dummyclasss.Main.1", "dummyclasss.Main.2"]},
+:identifier => "dummyclasss.Main",
There is indeed an error. I'm really not sure how this happened, since it was working before, and I don't remember much of anything changing. Regardless, I'll get on fixing this shortly.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
btw, I wrote a script to make it easy to query meta.last_event on an identifier