I don’t know if anyone encountered this issue. When I run the unit test for:
describe Searcher, "#results" do
it "returns results from a twitter search" do
searcher = Searcher.new('awesome search')
expect(searcher.results.length).to eq 15
end
end
the test fails with the error message:
1) Searcher#results returns results from a twitter search
Failure/Error: expect(searcher.results.length).to eq 15
expected: 15
got: 14
I had something similar (I once got 3 results, I think) which occurred when I ran a couple of test back-to-back; what was happening was that there were only that many ‘new’ results in the intervening time period.