Fix tests.

This commit is contained in:
Douwe Maan 2015-04-03 17:09:15 +02:00
parent c590cd3443
commit e8fb197da2
2 changed files with 2 additions and 4 deletions

View file

@ -9,8 +9,7 @@ describe Gitlab::GitoriousImport::ProjectCreator do
allow_any_instance_of(Project).to receive(:add_import_job) allow_any_instance_of(Project).to receive(:add_import_job)
project_creator = Gitlab::GitoriousImport::ProjectCreator.new(repo, namespace, user) project_creator = Gitlab::GitoriousImport::ProjectCreator.new(repo, namespace, user)
project_creator.execute project = project_creator.execute
project = Project.last
expect(project.name).to eq("Bar Baz Qux") expect(project.name).to eq("Bar Baz Qux")
expect(project.path).to eq("bar-baz-qux") expect(project.path).to eq("bar-baz-qux")

View file

@ -15,8 +15,7 @@ describe Gitlab::GoogleCodeImport::ProjectCreator do
allow_any_instance_of(Project).to receive(:add_import_job) allow_any_instance_of(Project).to receive(:add_import_job)
project_creator = Gitlab::GoogleCodeImport::ProjectCreator.new(repo, namespace, user) project_creator = Gitlab::GoogleCodeImport::ProjectCreator.new(repo, namespace, user)
project_creator.execute project = project_creator.execute
project = Project.last
expect(project.import_url).to eq("https://vim.googlecode.com/git/") expect(project.import_url).to eq("https://vim.googlecode.com/git/")
expect(project.visibility_level).to eq(Gitlab::VisibilityLevel::PUBLIC) expect(project.visibility_level).to eq(Gitlab::VisibilityLevel::PUBLIC)