fix the spec so it fails before applying the fix
This commit is contained in:
parent
cf3de110c2
commit
09a733bac3
2 changed files with 16 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue