提交 09a733ba 编写于 作者: M micael.bergeron

fix the spec so it fails before applying the fix

上级 cf3de110
......@@ -63,6 +63,18 @@
"last_edited_at": null,
"last_edited_by_id": null,
"group_milestone_id": null,
"milestone": {
"id": 1,
"title": "test milestone",
"project_id": 8,
"description": "test milestone",
"due_date": null,
"created_at": "2016-06-14T15:02:04.415Z",
"updated_at": "2016-06-14T15:02:04.415Z",
"state": "active",
"iid": 1,
"group_id": null
},
"label_links": [
{
"id": 11,
......
......@@ -24,7 +24,7 @@ describe Gitlab::ImportExport::ProjectTreeRestorer do
context 'JSON' do
it 'restores models based on JSON' do
expect(@restored_project_json).to be true
expect(@restored_project_json).to be_truthy
end
it 'restore correct project features' do
......@@ -203,7 +203,7 @@ describe Gitlab::ImportExport::ProjectTreeRestorer do
restored_project_json
expect(shared.errors.first).to be_nil
expect(shared.errors).to be_empty
end
end
end
......@@ -212,7 +212,7 @@ describe Gitlab::ImportExport::ProjectTreeRestorer do
it 'restores project json correctly' do
create(:ci_build, token: 'abcd')
expect(restored_project_json).to be true
expect(restored_project_json).to be_truthy
end
end
......@@ -233,8 +233,8 @@ describe Gitlab::ImportExport::ProjectTreeRestorer do
end
it 'correctly restores project' do
expect(restored_project_json).to be_truthy
expect(shared.errors).to be_empty
expect(restored_project_json).to be_truthy
end
it 'has labels' do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册