diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-31 19:19:40 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-31 19:19:40 +0300 |
commit | ee4643c732c3d91437e50d0c8486dbb8ea5b51b5 (patch) | |
tree | de3ad974cca2910270afbea95c9804ba249d82bd /spec/support | |
parent | 5a68c20fba095ec61aa3b74cb0fbeb69adbc1373 (diff) | |
download | gitlab-ce-ee4643c732c3d91437e50d0c8486dbb8ea5b51b5.tar.gz |
Fix MR tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/repo_helpers.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/support/repo_helpers.rb b/spec/support/repo_helpers.rb index 377e7f856ff..8c4c96ea851 100644 --- a/spec/support/repo_helpers.rb +++ b/spec/support/repo_helpers.rb @@ -33,6 +33,7 @@ eos author_email: "dmitriy.zaporozhets@gmail.com", files_changed_count: 2, line_code: '2f6fcd96b88b36ce98c38da085c795a27d92a3dd_15_14', + line_code_path: 'files/ruby/popen.rb', del_line_code: '2f6fcd96b88b36ce98c38da085c795a27d92a3dd_13_13', message: <<eos Change some files @@ -66,4 +67,23 @@ Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> eos ) end + + def sample_compare + changes = [ + { + line_code: 'a5cc2925ca8258af241be7e5b0381edf30266302_20_20', + file_path: '.gitignore', + }, + { + line_code: '7445606fbf8f3683cd42bdc54b05d7a0bc2dfc44_4_6', + file_path: '.gitmodules', + } + ] + + OpenStruct.new( + source_branch: 'master', + target_branch: 'feature', + changes: changes + ) + end end |