spec/conglomerate_spec.rb in conglomerate-0.3.0 vs spec/conglomerate_spec.rb in conglomerate-0.3.1
- old
+ new
@@ -16,11 +16,11 @@
roster_url(item.roster_id)
end
attribute :team_ids, :rel => :teams, :type => :array do |item|
team_url(item.team_ids.join(","))
end
- attribute :user_ids, :rel => :users do |item|
+ attribute :user_ids, :rel => :users, :type => :array do |item|
user_url(item.user_ids.join(","))
end
link :events do
events_url
@@ -155,10 +155,10 @@
{"name" => "description", "value" => "Tasty Burgers"},
{"name" => "id", "value" => 1},
{"name" => "event_id", "value" => 2},
{"name" => "roster_id", "value" => nil},
{"name" => "team_ids", "array" => [1,2]},
- {"name" => "user_ids", "value" => []}
+ {"name" => "user_ids", "array" => []}
],
"links" => [
{"rel" => "event", "href" => "https://example.com/events/2"},
{"rel" => "teams", "href" => "https://example.com/teams/1,2"}
]