spec/conglomerate_spec.rb in conglomerate-0.6.0 vs spec/conglomerate_spec.rb in conglomerate-0.7.0

- old
+ new

@@ -16,10 +16,13 @@ roster_url(item.roster_id) end attribute :team_ids, :rel => :teams, :type => :array do |item| team_url(item.team_ids.join(",")) end + attribute :event_date_time + attribute :event_date + attribute :event_time item_link :users do |item| users_search_url :object_id => item.id end attribute :is_available @@ -48,10 +51,13 @@ let(:object) do double( "Object", :id => 1, :description => "Tasty Burgers", + :event_date_time => DateTime.parse("1981-11-28T10:00:00+00:00"), + :event_date => Date.parse("1981-11-28"), + :event_time => Time.parse("1981-11-28T10:00:00+00:00"), :event_id => 2, :roster_id => nil, :team_ids => [1,2], :user_ids => [], :is_available => false @@ -162,9 +168,12 @@ {"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" => "event_date_time", "value" => "1981-11-28T10:00:00Z"}, + {"name" => "event_date", "value" => "1981-11-28"}, + {"name" => "event_time", "value" => "1981-11-28T10:00:00Z"}, {"name" => "is_available", "value" => false} ], "links" => [ {"rel" => "event", "href" => "https://example.com/events/2"}, {"rel" => "teams", "href" => "https://example.com/teams/1,2"},