- assert_equal history[0], 'node'
- assert_equal history[1], latest.id
- assert_equal history[2].first[0], latest.timestamp.to_i
- assert_equal history[2].last[0], nodes(:node_with_versions_v1).timestamp.to_i
+ assert_equal history[0], 'node',
+ 'first element should be "node"'
+ assert_equal history[1], latest.id,
+ 'second element should be the input node ID'
+ # NOTE: changed this test to match what amf_controller actually
+ # outputs - which may or may not be what potlatch is expecting.
+ # someone who knows potlatch (i.e: richard f) should review this.
+ assert_equal history[2].first[0], latest.version,
+ 'first part of third element should be the latest version'
+ assert_equal history[2].last[0],
+ nodes(:node_with_versions_v1).version,
+ 'second part of third element should be the initial version'