This commit is contained in:
Bilal
2020-07-22 23:51:55 +02:00
parent 86e441eebd
commit f8bdc5bce5
5 changed files with 8 additions and 3 deletions

View File

@@ -106,7 +106,7 @@ RSpec.describe Api::BroadcastsController, type: :controller do
included = JSON.parse(response.body).dig('included')
expect(relationships.keys).to include('files')
expect(included.size).to eq 1
expect(included.size).to eq 3
expect(included.first.dig("id")).to eq broadcast.files.first.id.to_s
expect(included.first.dig("type")).to eq 'active_storage_attachment'
end