diff --git a/spec/javascripts/fixtures/emojis.rb b/spec/javascripts/fixtures/emojis.rb index 0e7257ee681..f5fb008c7b3 100644 --- a/spec/javascripts/fixtures/emojis.rb +++ b/spec/javascripts/fixtures/emojis.rb @@ -8,9 +8,11 @@ describe 'Emojis (JavaScript fixtures)' do end it 'emojis/emojis.json' do |example| - # Copying the emojis.json from the public folder - fixture_file_name = File.expand_path('emojis/emojis.json', JavaScriptFixturesHelpers::FIXTURE_PATH) - FileUtils.mkdir_p(File.dirname(fixture_file_name)) - FileUtils.cp(Rails.root.join('public/-/emojis/1/emojis.json'), fixture_file_name) + JavaScriptFixturesHelpers::FIXTURE_PATHS.each do |fixture_path| + # Copying the emojis.json from the public folder + fixture_file_name = File.expand_path('emojis/emojis.json', fixture_path) + FileUtils.mkdir_p(File.dirname(fixture_file_name)) + FileUtils.cp(Rails.root.join('public/-/emojis/1/emojis.json'), fixture_file_name) + end end end