|
23 | 23 | before do
|
24 | 24 | allow(status_behavior).to receive(:beyond_collecting_format_review_files?).and_return(true)
|
25 | 25 | allow(status_behavior).to receive(:beyond_waiting_for_committee_review?).and_return(false)
|
26 |
| - allow(status_behavior).to receive(:beyond_waiting_for_final_submission_response?).and_return(false) |
27 | 26 | allow(status_behavior).to receive(:beyond_waiting_for_committee_review_rejected?).and_return(false)
|
28 | 27 | allow(status_behavior).to receive(:beyond_waiting_for_final_submission_response_rejected?).and_return(false)
|
29 | 28 | allow(status_behavior).to receive(:waiting_for_committee_review_rejected?).and_return(false)
|
|
46 | 45 | expect(export_payload.json_payload).to eq(expected_payload)
|
47 | 46 | end
|
48 | 47 |
|
49 |
| - context 'when the submission is beyond_collecting_format_review_files but not beyond_waiting_for_final_submission_response' do |
| 48 | + context 'when the submission is beyond_collecting_format_review_files but not beyond_waiting_for_final_submission_response_rejected' do |
50 | 49 | it 'sets thesisStatus to SUBMITTED' do
|
51 | 50 | payload = JSON.parse(export_payload.json_payload)
|
52 | 51 | expect(payload["PE_SR199_ETD_REQ"]["thesisStatus"]).to eq("SUBMITTED")
|
|
58 | 57 | end
|
59 | 58 | end
|
60 | 59 |
|
61 |
| - context 'when the submission is beyond_waiting_for_final_submission_response' do |
62 |
| - before do |
63 |
| - allow(status_behavior).to receive(:beyond_waiting_for_final_submission_response?).and_return(true) |
64 |
| - end |
65 |
| - |
66 |
| - it 'sets thesisStatus to APPROVED' do |
67 |
| - payload = JSON.parse(export_payload.json_payload) |
68 |
| - expect(payload["PE_SR199_ETD_REQ"]["thesisStatus"]).to eq("APPROVED") |
69 |
| - end |
70 |
| - end |
71 |
| - |
72 | 60 | context 'when the submission is beyond_waiting_for_committee_review_rejected' do
|
73 | 61 | before do
|
74 | 62 | allow(status_behavior).to receive(:beyond_waiting_for_committee_review_rejected?).and_return(true)
|
|
136 | 124 | payload = JSON.parse(export_payload.json_payload)
|
137 | 125 | expect(payload["PE_SR199_ETD_REQ"]["grdtnFlg"]).to eq('Y')
|
138 | 126 | end
|
| 127 | + |
| 128 | + it 'sets thesisStatus to APPROVED' do |
| 129 | + payload = JSON.parse(export_payload.json_payload) |
| 130 | + expect(payload["PE_SR199_ETD_REQ"]["thesisStatus"]).to eq("APPROVED") |
| 131 | + end |
139 | 132 | end
|
140 | 133 |
|
141 | 134 | context 'when access_level is open_access' do
|
|
0 commit comments