bundle exec rake heart:metrics:fetch_all fromdate=2013-09-01 todate=2013-09-03
When I issue this command I can see new rows are created on heart_metrics but these rows have different data than my previous run which is surprising to me. I would spec the command to be idempotent and always create the same set. In fact I would spec it to overwrite old data when run on the same date range.
I am not sure if it is a problem with the system or simply the docs should explain a little how it works.
bundle exec rake heart:metrics:fetch_all fromdate=2013-09-01 todate=2013-09-03
When I issue this command I can see new rows are created on heart_metrics but these rows have different data than my previous run which is surprising to me. I would spec the command to be idempotent and always create the same set. In fact I would spec it to overwrite old data when run on the same date range.
I am not sure if it is a problem with the system or simply the docs should explain a little how it works.