require 'test_helper'

class RepoTest < ActiveSupport::TestCase
  def test_sync_ranks
    Repo.new("#{Rails.root}/.git").send(:sync_ranks)

    {jeremy: 1, david: 2, jose: 3, xavier: 3, vijay: 3}.each do |c, r|
      assert_equal r, contributors(c).rank
    end
  end
end

require 'test_helper'

class RepoTest < ActiveSupport::TestCase
  def test_sync_ranks
    Repo.new.send(:sync_ranks)

    {jeremy: 1, david: 2, jose: 3, xavier: 3, vijay: 3}.each do |c, r|
      assert_equal r, contributors(c).rank
    end
  end
end
Revert "Fix test git path"
Revert "Fix test git path"

This reverts commit 0dabf67379b316d3a7267be22eca47f29890d287.
