##Date and Time
=TIMEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " ")) + DATEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " "))
##Date
=DATEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " "))
##Time
##Date and Time
=TIMEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " ")) + DATEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " "))
##Date
=DATEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " "))
##Time
# Starts with cucumber's built-in hashes method and adds a bit more magic: | |
# | |
# * Converts hash keys from stings to symbols | |
# * Converts numeric values into integers | |
# * Converts true/false strings into actual booleans | |
# | |
def hasherize(table) | |
table.hashes.map do |object| | |
object.each do |attribute, value| | |
object[attribute] = to_boolean?(value) |