Hi all, I’m going through the TDD workshop and noticed that in the Searcher class,
@results = searcher.search(search_term).results
no longer works. I looked in the Twitter gem documentation and it seems that I would have to do .take(15) to return 15 results.
This works fine until I get to FakeTwitter.search returning an OpenStruct.new(take: @results[term]) and not running because of an ArgumentError: wrong number of arguments (1 for 0).
Is there a good way to make this work? It doesn’t seem like an OpenStruct as a fake can have a take method that takes in an attribute.
Thanks!