From b0772ab0277463b67937633811cced8093e4d332 Mon Sep 17 00:00:00 2001 From: Joe Rafaniello Date: Wed, 12 Jun 2019 16:21:46 -0400 Subject: [PATCH] Avoid hardcoding paths to assets since it changes --- spec/requests/entrypoint_spec.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/spec/requests/entrypoint_spec.rb b/spec/requests/entrypoint_spec.rb index 03ce908097..fe0e1f3a58 100644 --- a/spec/requests/entrypoint_spec.rb +++ b/spec/requests/entrypoint_spec.rb @@ -73,12 +73,7 @@ ) ) - # This test will fail if you have the assets precompiled - expect(response.parsed_body['product_info']['branding_info']).to eq( - "brand" => "/images/layout/brand.svg", - "logo" => "/images/layout/login-screen-logo.png", - "favicon" => "/images/favicon.ico" - ) + expect(response.parsed_body['product_info']['branding_info'].keys).to match_array(%w{brand favicon logo}) end context 'UI is available' do