Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion storefront/.dockerdev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ RUN apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get -yq dist-upgrad
nodejs \
&& rm -rf /var/lib/apt/lists/*

ENV APP_USER=solidus_starter_frontend_user \
ENV APP_USER=solidus_storefront_user \
LANG=C.UTF-8 \
BUNDLE_JOBS=4 \
BUNDLE_RETRY=3
Expand Down
17 changes: 0 additions & 17 deletions storefront/lib/testing_support/coverage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,6 @@
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
end

def (SimpleCov::ResultAdapter).call(result)
result = result.transform_keys do |path|
template_path = path.sub(
"#{SimpleCov.root}/",
"#{SimpleCov.root}/../storefront/templates/"
)
File.exist?(template_path) ? template_path : path
end
result.each do |path, coverage|
next unless path.end_with?(".erb")

# Remove the extra trailing lines added by ERB
coverage[:lines] = coverage[:lines][...File.read(path).lines.size]
end
result
end

SimpleCov.command_name("solidus:storefront")
SimpleCov.merge_timeout(3600)
SimpleCov.start("rails")
Expand Down
2 changes: 1 addition & 1 deletion storefront/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
if __FILE__.match?(%r{\Ahttps?://})
require "uri"
url_path = URI.parse(__FILE__).path
match = url_path.match(%r{\A/([^/]+)/([^/]+)/raw/(.+?)/starter_frontend/template\.rb\z})
match = url_path.match(%r{\A/([^/]+)/([^/]+)/raw/(.+?)/storefront/template\.rb\z})
unless match
say_status :error, shell.set_color(
"Could not parse storefront template URL: #{__FILE__}\n" \
Expand Down
Loading