spec/models/github_data_collector_spec.rb
# Distribute fixture PRs over 25 day intervals from now to allow testing of 30/60 day intervals
Distribute fixture PRs over 25 day intervals from now to allow testing of 30/60 day intervals
Distribute fixture PRs over 25 day intervals from now to allow testing of 30 / 60 day intervals
def update_closed_time(pr_data)
      json = JSON.parse(pr_data)
      time = Time.now
      json.each {|pr| time = pr[:closed_at] = time - 25.day}
      json.to_json
    end
def update_closed_time ( pr_data ) json = JSON . parse ( pr_data ) time = Time . now json . each { | pr | time = pr [ :closed_at ] = time - 25 . day } json . to_json end
Distribute fixture PRs over 25 day intervals from now to allow testing of 30/60 day intervals
Distribute fixture PRs over 25 day intervals from now to allow testing of 30 / 60 day intervals
pr_data