diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-03 18:09:15 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-03 18:09:15 +0300 |
commit | e8fb197da285e7af1d39ba626f2f0f5c20c17eed (patch) | |
tree | 79dbe5d1bc6dd81917a353c679f8538c74ee154b /spec/lib/gitlab/google_code_import | |
parent | c590cd3443887c1d625ee2310ff5a3da7a0faee3 (diff) |
Fix tests.
Diffstat (limited to 'spec/lib/gitlab/google_code_import')
-rw-r--r-- | spec/lib/gitlab/google_code_import/project_creator_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/lib/gitlab/google_code_import/project_creator_spec.rb b/spec/lib/gitlab/google_code_import/project_creator_spec.rb index 7fca396f152..6cdd4dbbfb1 100644 --- a/spec/lib/gitlab/google_code_import/project_creator_spec.rb +++ b/spec/lib/gitlab/google_code_import/project_creator_spec.rb @@ -15,8 +15,7 @@ describe Gitlab::GoogleCodeImport::ProjectCreator do allow_any_instance_of(Project).to receive(:add_import_job) project_creator = Gitlab::GoogleCodeImport::ProjectCreator.new(repo, namespace, user) - project_creator.execute - project = Project.last + project = project_creator.execute expect(project.import_url).to eq("https://vim.googlecode.com/git/") expect(project.visibility_level).to eq(Gitlab::VisibilityLevel::PUBLIC) |