spec/server/api/add_spec.rb in cellect-server-1.3.1 vs spec/server/api/add_spec.rb in cellect-server-1.3.2

- old
+ new

@@ -34,7 +34,14 @@ expect(last_response.status).to eq 200 end end end end + + it 'should handle missing workflows' do + allow(Workflow).to receive(:[]).with('missing').and_return nil + put '/workflows/missing/add', subject_id: 123 + expect(last_response.status).to eql 404 + expect(last_response.body).to match /Not Found/ + end end end