Skip to content

Commit d1ca303

Browse files
committed
Fixing the batch photo delete test.
I broke the test with a different commit, and this fixes it.
1 parent b572c84 commit d1ca303

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"D": {
3+
"Results": [
4+
{
5+
"Id": "20060725225010201442000000,20060918191319441822000000"
6+
}
7+
],
8+
"Success": true
9+
}
10+
}

spec/unit/spark_api/models/listing_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@
358358
l = Listing.find(list_id, :_expand => "Photos")
359359
photo_id1 = l.photos[0].Id
360360
photo_id2 = l.photos[1].Id
361-
stub_api_delete("/listings/#{list_id}/photos/#{photo_id1},#{photo_id2}", 'success.json')
362-
l.delete_photos(photo_id1 + "," + photo_id2).should be(true)
361+
stub_api_delete("/listings/#{list_id}/photos/#{photo_id1},#{photo_id2}", 'listings/photos/index.json')
362+
l.delete_photos(photo_id1 + "," + photo_id2).should_not be_empty
363363
end
364364
end
365365
end

0 commit comments

Comments
 (0)