diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-24 06:09:48 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-24 06:09:48 +0300 |
commit | 5ff6f278d33ccb9c4b24130580f754c7fcd2f39e (patch) | |
tree | 261ab8fea575d6e6277fccb609dafc583291d4d5 /spec | |
parent | 28b18e348cae42472a31e94217706795a4821762 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/webpack/manifest_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/lib/gitlab/webpack/manifest_spec.rb b/spec/lib/gitlab/webpack/manifest_spec.rb index 65a2d8c750f..606a94ace8d 100644 --- a/spec/lib/gitlab/webpack/manifest_spec.rb +++ b/spec/lib/gitlab/webpack/manifest_spec.rb @@ -16,6 +16,14 @@ RSpec.describe Gitlab::Webpack::Manifest do EOF end + around do |example| + Gitlab::Webpack::Manifest.clear_manifest! + + example.run + + Gitlab::Webpack::Manifest.clear_manifest! + end + shared_examples_for "a valid manifest" do it "returns single entry asset paths from the manifest" do expect(Gitlab::Webpack::Manifest.asset_paths("entry2")).to eq(["/public_path/entry2.js"]) |