Commit 09a733ba authored by micael.bergeron's avatar micael.bergeron

fix the spec so it fails before applying the fix

parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment