I have some controller tests and I want to check the response values. I am unable to compare
expected: 2016-09-17 10:50:00.000000000 +0000
You're trying to compare two different data types. The parsed JSON is a string. The foo.start_time attribute is a Ruby datetime.
Do the following:
That will convert the string into a datetime, which can then be compared to foo.start_time.