spec/fixtures/test_client.rb in evil-client-3.0.4 vs spec/fixtures/test_client.rb in evil-client-3.1.0
- old
+ new
@@ -27,10 +27,10 @@
option :email, optional: true
validate { errors.add :filter_given unless name || id || email }
http_method :get
- response(200) { |*res| res.last.flat_map { |item| JSON.parse(item) } }
+ response(200) { |*res| res.last.flat_map { |item| item&.!=("") ? JSON.parse(item) : [] } }
end
operation :fetch do
option :id