Skip to content

Commit a8d2d1f

Browse files
refactor: update stubbing in packs_generator_spec to improve clarity and maintainability
1 parent 448e696 commit a8d2d1f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/dummy/spec/packs_generator_spec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,10 @@ def self.configuration
220220
before do
221221
stub_packer_source_path(component_name: components_directory,
222222
packer_source_path: packer_source_path)
223-
allow(ReactOnRails::Utils).to receive_messages(react_on_rails_pro?: true, rsc_support_enabled?: true)
223+
allow(ReactOnRails::Utils).to receive(:react_on_rails_pro?).and_return(true)
224+
allow(ReactOnRailsPro.configuration).to receive_messages(
225+
enable_rsc_support: true
226+
)
224227
end
225228

226229
context "when common component is not a client entrypoint" do

0 commit comments

Comments
 (0)