Open
Description
This doesn't work (on the with-mongoid branch) for _post
.
require 'hyperclient'
client = Hyperclient.new('http://localhost:9292/api')
3.times do |i|
client.splines._post(spline: { name: i.to_s, reticulated: [true, false].sample })
end
client.splines.each do |spline|
puts "spline #{spline.id} #{spline.reticulated ? 'is' : 'is not'} reticulated"
end
client.splines.each(&:_delete)