diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2017-03-17 08:57:44 +0100 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2017-04-03 12:45:31 +0200 |
commit | 148068a8dfc9816c918839751450ed404698939c (patch) | |
tree | 544a3b306b615a7ecb289d8c19ff453c91785d24 | |
parent | 291bd873d38094d9bc9b7482566f6dee40096992 (diff) | |
download | gitlab-ce-148068a8dfc9816c918839751450ed404698939c.tar.gz |
Fix specs
-rw-r--r-- | spec/lib/gitlab/github_import/importer_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/github_import/importer_spec.rb b/spec/lib/gitlab/github_import/importer_spec.rb index 8b867fbe322..9d5e20841b5 100644 --- a/spec/lib/gitlab/github_import/importer_spec.rb +++ b/spec/lib/gitlab/github_import/importer_spec.rb @@ -215,9 +215,9 @@ describe Gitlab::GithubImport::Importer, lib: true do let(:updated_at) { DateTime.strptime('2011-01-27T19:01:12Z') } let(:repository) { double(id: 1, fork: false) } let(:source_sha) { create(:commit, project: project).id } - let(:source_branch) { double(ref: 'branch-merged', repo: repository, sha: source_sha) } + let(:source_branch) { double(ref: 'branch-merged', repo: repository, sha: source_sha, user: octocat) } let(:target_sha) { create(:commit, project: project, git_commit: RepoHelpers.another_sample_commit).id } - let(:target_branch) { double(ref: 'master', repo: repository, sha: target_sha) } + let(:target_branch) { double(ref: 'master', repo: repository, sha: target_sha, user: octocat) } let(:pull_request) do double( number: 1347, |