diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-03 17:09:15 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-03 17:09:15 +0200 |
commit | e8fb197da285e7af1d39ba626f2f0f5c20c17eed (patch) | |
tree | 79dbe5d1bc6dd81917a353c679f8538c74ee154b | |
parent | c590cd3443887c1d625ee2310ff5a3da7a0faee3 (diff) | |
download | gitlab-ce-e8fb197da285e7af1d39ba626f2f0f5c20c17eed.tar.gz |
Fix tests.
-rw-r--r-- | spec/lib/gitlab/gitorious_import/project_creator_spec.rb | 3 | ||||
-rw-r--r-- | spec/lib/gitlab/google_code_import/project_creator_spec.rb | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/spec/lib/gitlab/gitorious_import/project_creator_spec.rb b/spec/lib/gitlab/gitorious_import/project_creator_spec.rb index cf2318bb3a2..90271ea15e3 100644 --- a/spec/lib/gitlab/gitorious_import/project_creator_spec.rb +++ b/spec/lib/gitlab/gitorious_import/project_creator_spec.rb @@ -9,8 +9,7 @@ describe Gitlab::GitoriousImport::ProjectCreator do allow_any_instance_of(Project).to receive(:add_import_job) project_creator = Gitlab::GitoriousImport::ProjectCreator.new(repo, namespace, user) - project_creator.execute - project = Project.last + project = project_creator.execute expect(project.name).to eq("Bar Baz Qux") expect(project.path).to eq("bar-baz-qux") 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) |