jsmestad / pivotal-tracker

Ruby gem that provides an AR-style interface for the Pivotal Tracker API
http://github.com/jsmestad/pivotal-tracker
MIT License
352 stars 184 forks source link

Updating a story label for a label-less story fails #114

Open swaroopmurthy opened 9 years ago

swaroopmurthy commented 9 years ago

Say you have a story without any labels, 123, adding a new label fails:

@a_project = PivotalTracker::Project.find(84739)  
story = @a_project.stories.find(123).update(labels: 'ready for qa')

With the following stack trace:

[19] pry(main)> story.update
ArgumentError: invalid date
from /Users/SwaroopMurthy/.rvm/gems/ruby-2.2.2@tad/bundler/gems/pivotal-tracker-1647cbc82e4a/lib/pivotal-tracker/story.rb:138:in `parse'