Minor refactor

This commit is contained in:
Andrew Kvalheim 2020-04-01 08:53:01 -07:00
parent 10f0edac20
commit a179a38fae
5 changed files with 5 additions and 5 deletions

View file

@ -22,7 +22,7 @@ describe Api::V1::SpeakersController do
get :index, params: { format: :json }
json = JSON.parse(response.body)['speakers']
expect(response).to be_success
expect(json.map { |u| u['name'] }).to contain_exactly('Conf_Speaker', 'Speaker')
expect(json.pluck('name')).to contain_exactly('Conf_Speaker', 'Speaker')
end
end