I think you could initialize IssueSerializer with an ActiveRecord::Relation or an Array instead. E.g.

```
  expected_response = IssueSerializer.new(Issue.all).to_json

  expect(response.body).to eq(expected_response)
```

or something like that. Not sure though. You should try that.