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

@ -21,7 +21,7 @@ describe Api::V1::ConferencesController do
end
it 'returns correct conferences' do
expect(@json.map { |c| c['short_title'] }).to contain_exactly('conf_one', 'conf_two')
expect(@json.pluck('short_title')).to contain_exactly('conf_one', 'conf_two')
end
end