lib/travis/client/methods.rb in travis-1.8.14.travis.1183.9 vs lib/travis/client/methods.rb in travis-1.8.14.travis.1184.9

- old
+ new

@@ -72,10 +72,10 @@ def restart(entity) # btw, internally we call this reset, not restart, as it resets the state machine # but we thought that would be too confusing raise Error, "cannot restart a #{entity.class.one}" unless entity.restartable? - session.post_raw('/requests', "#{entity.class.one}_id" => entity.id) + session.post_raw("/#{entity.class.many}/#{entity.id}/restart") entity.reload end def cancel(entity) raise Error, "cannot cancel a #{entity.class.one}" unless entity.cancelable?