spec/server/api/sample_spec.rb in cellect-server-1.3.1 vs spec/server/api/sample_spec.rb in cellect-server-1.3.2
- old
+ new
@@ -28,7 +28,14 @@
expect(json).to be_a Array
end
end
end
end
+
+ it 'should handle missing workflows' do
+ allow(Workflow).to receive(:[]).with('missing').and_return nil
+ get '/workflows/missing', limit: 3, user_id: 123
+ expect(last_response.status).to eql 404
+ expect(last_response.body).to match /Not Found/
+ end
end
end