diff options
author | Rémy Coutable <remy@rymai.me> | 2019-03-07 19:02:39 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-03-07 19:02:39 +0300 |
commit | 42df6c854dbf14eb0eb3fad839b93d3b3d9649f7 (patch) | |
tree | 8ec48dce784625799a3d0f95cdb36b58336d0070 /spec/javascripts/fixtures | |
parent | b63efb09a5c864047924cd2d84527b47dd563d5f (diff) |
Fix for mismatch in EE on FIXTURE_PATHS to FIXTURE_PATH
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/javascripts/fixtures')
-rw-r--r-- | spec/javascripts/fixtures/emojis.rb | 10 |
1 files changed, 6 insertions, 4 deletions
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 |