diff options
author | Rubén Dávila <rdavila84@gmail.com> | 2016-01-08 19:05:55 -0500 |
---|---|---|
committer | Rubén Dávila <rdavila84@gmail.com> | 2016-01-08 19:05:55 -0500 |
commit | 78d7c0e0d81c40e0d9541e4ef0dd15df30d457e3 (patch) | |
tree | ce74cbef2f775ad6983d5a8f8e3efc0f404c5e31 /spec/helpers/diff_helper_spec.rb | |
parent | 52f8286a02bab5af1ebbf0fb7bcccff56c74ab9f (diff) | |
download | gitlab-ce-78d7c0e0d81c40e0d9541e4ef0dd15df30d457e3.tar.gz |
Fix broken specs. #3945
Diffstat (limited to 'spec/helpers/diff_helper_spec.rb')
-rw-r--r-- | spec/helpers/diff_helper_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/helpers/diff_helper_spec.rb b/spec/helpers/diff_helper_spec.rb index 0501c2e8c29..84b8f4d1679 100644 --- a/spec/helpers/diff_helper_spec.rb +++ b/spec/helpers/diff_helper_spec.rb @@ -7,7 +7,8 @@ describe DiffHelper do let(:commit) { project.commit(sample_commit.id) } let(:diffs) { commit.diffs } let(:diff) { diffs.first } - let(:diff_file) { Gitlab::Diff::File.new(diff) } + let(:diff_refs) { [commit.parent.id, commit.id] } + let(:diff_file) { Gitlab::Diff::File.new(diff, diff_refs, project.repository) } describe 'diff_hard_limit_enabled?' do it 'should return true if param is provided' do |