lib/percy/capybara/loaders/base_loader.rb in percy-capybara-2.4.1 vs lib/percy/capybara/loaders/base_loader.rb in percy-capybara-2.4.2
- old
+ new
@@ -27,11 +27,11 @@
'(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*' \
')' +
# port number
'(:\\d{2,5})?' +
# resource path
- "(/[^\\s\"']*)?"
+ "(/[^\\s\"']*)?",
)
attr_reader :page
# @param [Capybara::Session] page The Capybara page.
@@ -48,11 +48,11 @@
end
# @private
def root_html_resource
Percy::Client::Resource.new(
- current_path, is_root: true, mimetype: 'text/html', content: page.html
+ current_path, is_root: true, mimetype: 'text/html', content: page.html,
)
end
# Transformed version of the current URL to be a relative path.
# This important because Rack::Test uses "www.example.com" as the actual current URL,
@@ -90,10 +90,10 @@
resources <<
Percy::Client::Resource.new(
path,
content: content,
sha: sha,
- mimetype: 'text/html'
+ mimetype: 'text/html',
)
end
end
resources