rspec - why does this attribute comparison usng assert_equal fail when they are the same, on ubuntu only?

為{幸葍}努か 提交于 2019-12-02 02:13:22

No real answer has been given so I've gone with iterating through the atrributes, e.g.

i=0
while i < @student.attributes.count
  assert_equal @student.attributes[i], Student.first.attributes[i]
  i+= 1
end

# Comparing field by field as ruby hash comparison isn't working right - 
# but only on Ubuntu!
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!