Skip to content

Commit 06fbffe

Browse files
fix mock in webpack assets status checker test
1 parent fa343a8 commit 06fbffe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/react_on_rails/test_helper/webpack_assets_status_checker_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@
6767
packer_public_output_path: generated_assets_full_path
6868
)
6969
allow(ReactOnRails.configuration).to receive(:server_bundle_js_file).and_return("server-bundle.js")
70-
allow(ReactOnRails::Utils).to receive(:bundle_js_file_path)
70+
allow(ReactOnRails::PackerUtils).to receive(:bundle_js_uri_from_packer)
7171
.with("manifest.json")
7272
.and_return(File.join(generated_assets_full_path, "manifest.json"))
73-
allow(ReactOnRails::Utils).to receive(:bundle_js_file_path)
73+
allow(ReactOnRails::PackerUtils).to receive(:bundle_js_uri_from_packer)
7474
.with("server-bundle.js")
7575
.and_raise(Packer::Manifest::MissingEntryError)
7676
touch_files_in_dir(generated_assets_full_path)

0 commit comments

Comments
 (0)