mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-15 20:54:03 +00:00
Minor refactor
This commit is contained in:
parent
10f0edac20
commit
a179a38fae
5 changed files with 5 additions and 5 deletions
|
|
@ -15,7 +15,7 @@ describe Api::V1::EventsController do
|
|||
json = JSON.parse(response.body)['events']
|
||||
expect(response).to be_success
|
||||
|
||||
expect(json.map { |e| e['title'] }).to contain_exactly('Conference Event', 'Example Event')
|
||||
expect(json.pluck('title')).to contain_exactly('Conference Event', 'Example Event')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue