Skip to content

Commit f821906

Browse files
committed
revert tests back to check for global assets
1 parent 30cb11c commit f821906

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

spec/lib/project_importer_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,13 @@
208208

209209
it 'imports the project assets' do
210210
importer.import!
211-
expect(project.scratch_assets.where(filename: ['test_image_1.png', 'test_video_1.mp4', 'test_audio_1.mp3']).count).to eq(3)
211+
expect(ScratchAsset.global_assets.where(filename: ['test_image_1.png', 'test_video_1.mp4', 'test_audio_1.mp3']).count).to eq(3)
212212
end
213213

214214
it 'attaches the imported asset file content' do
215215
importer.import!
216216

217-
scratch_asset = project.scratch_assets.find_by(filename: 'test_image_1.png')
217+
scratch_asset = ScratchAsset.global_assets.find_by(filename: 'test_image_1.png')
218218
expect(scratch_asset.file.download).to eq(sb3_fixture_content('test_image_1.png'))
219219
end
220220

@@ -271,7 +271,7 @@
271271

272272
importer.import!
273273

274-
expect(project.scratch_assets.where(filename: ['test_image_1.png', 'test_video_1.mp4', 'test_audio_1.mp3']).count).to eq(3)
274+
expect(ScratchAsset.global_assets.where(filename: ['test_image_1.png', 'test_video_1.mp4', 'test_audio_1.mp3']).count).to eq(3)
275275
end
276276

277277
it 'rolls back project changes when the scratch content cannot be parsed' do

0 commit comments

Comments
 (0)