require 'spec_helper'

describe 'Emojis (JavaScript fixtures)' do
  include JavaScriptFixturesHelpers

  before(:all) do
    clean_frontend_fixtures('emojis/')
  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)
  end
end

require 'spec_helper'

describe 'Emojis (JavaScript fixtures)' do
  include JavaScriptFixturesHelpers

  before(:all) do
    clean_frontend_fixtures('emojis/')
  end

  it 'emojis/emojis.json' do |example|
    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

Fix for mismatch in EE on FIXTURE_PATHS to FIXTURE_PATH
Fix for mismatch in EE on FIXTURE_PATHS to FIXTURE_PATH

Signed-off-by: Rémy Coutable <4ea0184b9df19e0786dd00b28e6daa4d26baeb3e@rymai.me>
