From 9ea6fc00cb25a6b948e93b0ec2f6e58513cf257e Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Tue, 5 Sep 2023 14:03:41 +0200 Subject: [PATCH] Ignore `test.host` host to avoid error ``` Failed to open TCP connection to test.host:80 ``` --- spec/views/spree/admin/orders/invoice.html.haml_spec.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/views/spree/admin/orders/invoice.html.haml_spec.rb b/spec/views/spree/admin/orders/invoice.html.haml_spec.rb index e6cccbdced..c833bca906 100644 --- a/spec/views/spree/admin/orders/invoice.html.haml_spec.rb +++ b/spec/views/spree/admin/orders/invoice.html.haml_spec.rb @@ -27,7 +27,10 @@ describe "spree/admin/orders/invoice.html.haml" do display_checkout_total_less_tax: '8', outstanding_balance_label: 'Outstanding Balance' - stub_request(:get, ->(uri) { uri.to_s.include? "/css/mail" }) + # Ignore requests for CSS pack like: 'http://test.host/packs-test/css/mail-1ab2dc7f.css' + VCR.configure do |config| + config.ignore_hosts('test.host') + end end it "displays the customer code" do