require "spec_helper" describe Gitlab::Git::Diff, :seed_helper do let(:repository) { Gitlab::Git::Repository.new('default', TEST_REPO_PATH, '', 'group/project') } let(:gitaly_diff) do Gitlab::GitalyClient::Diff.new( from_path: '.gitmodules', to_path: '.gitmodules', old_mode: 0100644, new_mode: 0100644, from_id: '0792c58905eff3432b721f8c4a64363d8e28d9ae', to_id: 'efd587ccb47caf5f31fc954edb21f0a713d9ecc3', overflow_marker: false, collapsed: false, too_large: false, patch: "@@ -4,3 +4,6 @@\n [submodule \"gitlab-shell\"]\n \tpath = gitlab-shell\n \turl = https://github.com/gitlabhq/gitlab-shell.git\n+[submodule \"gitlab-grack\"]\n+\tpath = gitlab-grack\n+\turl = https://gitlab.com/gitlab-org/gitlab-grack.git\n" ) end before do @raw_diff_hash = { diff: <