rottentomatoes icon indicating copy to clipboard operation
rottentomatoes copied to clipboard

Fix results when searching by movie

Open paulshen opened this issue 10 years ago • 0 comments

When searching for movies by :title, we should return an array unless the user specifies a :limit of 1. The previous spec just happened to test a query that had more than one result ("Fight Club").

Test Plan:

rspec spec

NOTE:

imho, I think the API should always return an array when searching by :title. Seems weird that the result type is different when a special :limit is set.

paulshen avatar Oct 10 '13 04:10 paulshen