spec/lib/percy/capybara/loaders/filesystem_loader_spec.rb in percy-capybara-2.4.3 vs spec/lib/percy/capybara/loaders/filesystem_loader_spec.rb in percy-capybara-2.4.4

- old
+ new

@@ -47,10 +47,11 @@ end expected_paths = [ '/assets/css/digested-f3420c6aee71c137a3ca39727052811ba' \ 'e84b2f37d898f4db242e20656a1579e.css', '/css/base.css', + '/css/font.css', '/css/digested.css', '/css/imports.css', '/css/level0-imports.css', '/css/level1-imports.css', '/css/level2-imports.css', @@ -67,15 +68,16 @@ '/images/srcset-second.png', '/index.html', '/js/base.js', '/public/percy-from-public.svg', '/test-css.html', + '/test-font.html', '/test-iframe.html', '/test-images.html', '/test-localtest-me-images.html', ] - expect(actual_paths).to eq(expected_paths) + expect(actual_paths).to match_array(expected_paths) expected_urls = loader.build_resources.collect(&:resource_url) actual_urls = [ '/url-prefix/assets/css/digested-f3420c6aee71c137a3ca' \ '39727052811bae84b2f37d898f4db242e20656a1579e.css', @@ -84,10 +86,11 @@ '/url-prefix/css/imports.css', '/url-prefix/css/level0-imports.css', '/url-prefix/css/level1-imports.css', '/url-prefix/css/level2-imports.css', '/url-prefix/css/simple-imports.css', + '/url-prefix/css/font.css', '/url-prefix/iframe.html', '/url-prefix/images/bg-relative-to-root.png', '/url-prefix/images/bg-relative.png', '/url-prefix/images/bg-stacked.png', '/url-prefix/images/img-relative-to-root.png', @@ -98,14 +101,15 @@ '/url-prefix/images/srcset-second.png', '/url-prefix/index.html', '/url-prefix/js/base.js', '/url-prefix/public/percy-from-public.svg', '/url-prefix/test-css.html', + '/url-prefix/test-font.html', '/url-prefix/test-iframe.html', '/url-prefix/test-images.html', '/url-prefix/test-localtest-me-images.html', ] - expect(actual_urls).to eq(expected_urls) + expect(actual_urls).to match_array(expected_urls) end end context 'assets_dir with only skippable resources' do let(:assets_dir) { File.expand_path('../../client/testdata/assets/images', __FILE__) } it 'returns an empty list' do