diff options
author | Rémy Coutable <remy@rymai.me> | 2019-03-12 10:02:45 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-03-12 10:02:45 +0300 |
commit | 66dffba45d3de6e59fdfa5bf6b525d098aa7b280 (patch) | |
tree | df8700923107903a88c3e3964535318672679fa0 /spec/javascripts/fixtures | |
parent | f859b0e1e7f257a962866c98eca430c1338b7dba (diff) |
Don't create EE-specific files when creating Emojis fixture files
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/javascripts/fixtures')
-rw-r--r-- | spec/javascripts/fixtures/emojis.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/javascripts/fixtures/emojis.rb b/spec/javascripts/fixtures/emojis.rb index f5fb008c7b3..4dab697e5e2 100644 --- a/spec/javascripts/fixtures/emojis.rb +++ b/spec/javascripts/fixtures/emojis.rb @@ -9,6 +9,8 @@ describe 'Emojis (JavaScript fixtures)' do it 'emojis/emojis.json' do |example| JavaScriptFixturesHelpers::FIXTURE_PATHS.each do |fixture_path| + next unless File.directory?(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)) |