You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I uncomment the binding.pry and check control_8601.to_json == candidate['pages'].to_json, I get true. But when I get the summarized_results, they are always marked as mismatched (this is in my dev environment):
When I check LabTech.compare_mismatches 'PagesController#index', there is no difference between the control and candidate.
I'm running the comparison with the deep_transform_values because in my control, the created_at value is coming back as an ActiveSupport::TimeWithZone and in the candidate it is returned as a string - that's the only difference between the two that I can find, however they seem to be identical after the transform. I has noticed this before doing the transform, compare_mismatches would still come back without any difference, so my theory is that once serialized to Postgres and deserialized later, the dates would be normalized.
My Gemfile.lock has the latest versions of the gems:
lab_tech (0.1.9)
scientist (1.6.4)
What am I doing wrong here? Or is there a bug? Could this be related to #41?
The text was updated successfully, but these errors were encountered:
I have written an experiment to compare the output of 2 rails serializers (lightly edited from the production code, but the logic is identical):
When I uncomment the
binding.pry
and checkcontrol_8601.to_json == candidate['pages'].to_json
, I gettrue
. But when I get the summarized_results, they are always marked as mismatched (this is in my dev environment):When I check
LabTech.compare_mismatches 'PagesController#index'
, there is no difference between the control and candidate.I'm running the comparison with the
deep_transform_values
because in my control, thecreated_at
value is coming back as anActiveSupport::TimeWithZone
and in the candidate it is returned as a string - that's the only difference between the two that I can find, however they seem to be identical after the transform. I has noticed this before doing the transform,compare_mismatches
would still come back without any difference, so my theory is that once serialized to Postgres and deserialized later, the dates would be normalized.My
Gemfile.lock
has the latest versions of the gems:What am I doing wrong here? Or is there a bug? Could this be related to #41?
The text was updated successfully, but these errors were encountered: