Fix tests.
This commit is contained in:
parent
c590cd3443
commit
e8fb197da2
2 changed files with 2 additions and 4 deletions
|
@ -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")
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue