Commit 28961d6a authored by Winnie Hellmann's avatar Winnie Hellmann

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

parent 00db7821
...@@ -3,10 +3,6 @@ require 'spec_helper' ...@@ -3,10 +3,6 @@ require 'spec_helper'
describe ApplicationController, '(Static JavaScript fixtures)', type: :controller do describe ApplicationController, '(Static JavaScript fixtures)', type: :controller do
include JavaScriptFixturesHelpers include JavaScriptFixturesHelpers
before(:all) do
clean_frontend_fixtures('static/')
end
Dir.glob('{,ee/}spec/javascripts/fixtures/**/*.haml').map do |file_path| 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| 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) store_frontend_fixture(render_template(file_path), example.description)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment