spec/conglomerate_spec.rb in conglomerate-0.4.0 vs spec/conglomerate_spec.rb in conglomerate-0.5.0

- old
+ new

@@ -19,10 +19,11 @@ team_url(item.team_ids.join(",")) end attribute :user_ids, :rel => :users, :type => :array do |item| user_url(item.user_ids.join(",")) end + attribute :is_available link :events do events_url end @@ -50,11 +51,12 @@ :id => 1, :description => "Tasty Burgers", :event_id => 2, :roster_id => nil, :team_ids => [1,2], - :user_ids => [] + :user_ids => [], + :is_available => false ) end let(:context) do request = double("Request", :original_url => "https://example.com/items") @@ -157,10 +159,11 @@ {"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", "array" => []} + {"name" => "user_ids", "array" => []}, + {"name" => "is_available", "value" => false} ], "links" => [ {"rel" => "event", "href" => "https://example.com/events/2"}, {"rel" => "teams", "href" => "https://example.com/teams/1,2"} ]