diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-10-03 17:47:56 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-10-03 17:47:56 +0300 |
commit | 7b262c435619798cdfebe3760709fc9029032343 (patch) | |
tree | 7f908c1297dbda91f49e86bf6385c4211ba4f36f /spec/lib/gitlab/path_regex_spec.rb | |
parent | 18fee3060c78e032777b5dc6b3d1f60432446ea5 (diff) |
Resolve "Precompiled assets with digest strings are ignored in CI"
Diffstat (limited to 'spec/lib/gitlab/path_regex_spec.rb')
-rw-r--r-- | spec/lib/gitlab/path_regex_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/lib/gitlab/path_regex_spec.rb b/spec/lib/gitlab/path_regex_spec.rb index 2f989397f7e..1f1c48ee9b5 100644 --- a/spec/lib/gitlab/path_regex_spec.rb +++ b/spec/lib/gitlab/path_regex_spec.rb @@ -84,9 +84,9 @@ describe Gitlab::PathRegex do let(:top_level_words) do words = routes_not_starting_in_wildcard.map do |route| route.split('/')[1] - end.compact.uniq + end.compact - words + ee_top_level_words + files_in_public + Array(API::API.prefix.to_s) + (words + ee_top_level_words + files_in_public + Array(API::API.prefix.to_s)).uniq end let(:ee_top_level_words) do @@ -95,10 +95,11 @@ describe Gitlab::PathRegex do let(:files_in_public) do git = Gitlab.config.git.bin_path - `cd #{Rails.root} && #{git} ls-files public` + tracked = `cd #{Rails.root} && #{git} ls-files public` .split("\n") .map { |entry| entry.gsub('public/', '') } .uniq + tracked + %w(assets uploads) end # All routes that start with a namespaced path, that have 1 or more |