diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-22 12:03:32 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-23 09:32:42 -0600 |
commit | e2bbbb1a9aea72e4313cdc257460eb416fe8dc0b (patch) | |
tree | 38d334adcffc86edb6024fe2d77506d601093ed2 /spec/support | |
parent | 75f5fa997de148c9bc0e5bd6e6f6050526a0b164 (diff) | |
download | gitlab-ce-e2bbbb1a9aea72e4313cdc257460eb416fe8dc0b.tar.gz |
Fix new offenses
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/repo_helpers.rb | 13 | ||||
-rw-r--r-- | spec/support/stub_gitlab_calls.rb | 2 |
2 files changed, 8 insertions, 7 deletions
diff --git a/spec/support/repo_helpers.rb b/spec/support/repo_helpers.rb index aab5d32ff36..e9d5c7b12ae 100644 --- a/spec/support/repo_helpers.rb +++ b/spec/support/repo_helpers.rb @@ -42,7 +42,7 @@ Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> eos ) end - + def another_sample_commit OpenStruct.new( id: "e56497bb5f03a90a51293fc6d516788730953899", @@ -101,11 +101,12 @@ eos ] commits = %w( -5937ac0a7beb003549fc5fd26fc247adbce4a52e -570e7b2abdd848b95f2f578043fc23bd6f6fd24d -6f6d7e7ed97bb5f0054f2b1df789b39ca89b6ff9 -d14d6c0abdd253381df51a723d58691b2ee1ab08 -c1acaa58bbcbc3eafe538cb8274ba387047b69f8).reverse # last commit is recent one + 5937ac0a7beb003549fc5fd26fc247adbce4a52e + 570e7b2abdd848b95f2f578043fc23bd6f6fd24d + 6f6d7e7ed97bb5f0054f2b1df789b39ca89b6ff9 + d14d6c0abdd253381df51a723d58691b2ee1ab08 + c1acaa58bbcbc3eafe538cb8274ba387047b69f8 + ).reverse # last commit is recent one OpenStruct.new( source_branch: 'master', diff --git a/spec/support/stub_gitlab_calls.rb b/spec/support/stub_gitlab_calls.rb index 641b11d51bf..69e1ad18b15 100644 --- a/spec/support/stub_gitlab_calls.rb +++ b/spec/support/stub_gitlab_calls.rb @@ -53,7 +53,7 @@ module StubGitlabCalls stub_request(:post, "#{gitlab_url}api/v3/session.json") .with(body: "{\"email\":\"test@test.com\",\"password\":\"123456\"}", - headers: { 'Content-Type' => 'application/json' }) + headers: { 'Content-Type' => 'application/json' }) .to_return(status: 201, body: f, headers: { 'Content-Type' => 'application/json' }) end |