Do not delete files in spec/javascripts/fixtures/static/

This commit is contained in:
Winnie Hellmann 2019-03-12 11:24:22 +01:00
parent 00db78214c
commit 28961d6abb
1 changed files with 0 additions and 4 deletions

View File

@ -3,10 +3,6 @@ require 'spec_helper'
describe ApplicationController, '(Static JavaScript fixtures)', type: :controller do
include JavaScriptFixturesHelpers
before(:all) do
clean_frontend_fixtures('static/')
end
Dir.glob('{,ee/}spec/javascripts/fixtures/**/*.haml').map do |file_path|
it "static/#{file_path.sub(%r{\A(ee/)?spec/javascripts/fixtures/}, '').sub(/\.haml\z/, '.raw')}" do |example|
store_frontend_fixture(render_template(file_path), example.description)