test/integration/server.rb in roar-1.0.4 vs test/integration/server.rb in roar-1.1.0
- old
+ new
@@ -53,9 +53,15 @@
body consume_band.to_json
status 201
end
+get '/bands' do
+ [OpenStruct.new(:name => "Slayer", :label => "Canadian Maple"),
+ OpenStruct.new(:name => "Nirvana", :label => "Sub Pop")]
+ .extend(Integration::BandRepresenter.for_collection).to_json
+end
+
put "/bands/strungout" do
# DISCUSS: as long as we don't agree on what to return in PUT/PATCH, let's return an updated document.
body consume_band.to_json
#status 204
end