@@ -215,12 +215,12 @@ def mock_dev_server_running
215215
216216 context "with server file in the manifest, used for client" , packer_type . to_sym do
217217 it "returns the correct path hashed server path" do
218- Packer = ReactOnRails ::PackerUtils . packer # rubocop:disable Lint/ConstantDefinitionInBlock, RSpec/LeakyConstantDeclaration
218+ packer = ReactOnRails ::PackerUtils . packer
219219 mock_bundle_configs ( server_bundle_name : "webpack-bundle.js" )
220220 allow ( ReactOnRails ) . to receive_message_chain ( "configuration.same_bundle_for_client_and_server" )
221221 . and_return ( true )
222222 mock_bundle_in_manifest ( "webpack-bundle.js" , "webpack/development/webpack-bundle-123456.js" )
223- allow ( Packer ) . to receive_message_chain ( "dev_server.running?" )
223+ allow ( packer ) . to receive_message_chain ( "dev_server.running?" )
224224 . and_return ( false )
225225
226226 path = described_class . server_bundle_js_file_path
@@ -278,12 +278,12 @@ def mock_dev_server_running
278278
279279 context "with server file in the manifest, used for client" , packer_type . to_sym do
280280 it "returns the correct path hashed server path" do
281- Packer = ReactOnRails ::PackerUtils . packer # rubocop:disable Lint/ConstantDefinitionInBlock, RSpec/LeakyConstantDeclaration
281+ packer = ReactOnRails ::PackerUtils . packer
282282 mock_bundle_configs ( rsc_bundle_name : "webpack-bundle.js" )
283283 allow ( ReactOnRails ) . to receive_message_chain ( "configuration.same_bundle_for_client_and_server" )
284284 . and_return ( true )
285285 mock_bundle_in_manifest ( "webpack-bundle.js" , "webpack/development/webpack-bundle-123456.js" )
286- allow ( Packer ) . to receive_message_chain ( "dev_server.running?" )
286+ allow ( packer ) . to receive_message_chain ( "dev_server.running?" )
287287 . and_return ( false )
288288
289289 path = described_class . rsc_bundle_js_file_path
0 commit comments