Skip to content

Commit 4a895c2

Browse files
Enhance ReactOnRailsHelper spec by mocking additional utility methods for improved test coverage
1 parent 37704eb commit 4a895c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/dummy/spec/helpers/react_on_rails_helper_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ class PlainReactOnRailsHelper
2222
}
2323

2424
allow(ReactOnRails::Utils).to receive_messages(
25-
react_on_rails_pro?: true
25+
react_on_rails_pro?: true,
26+
react_on_rails_pro_version: "",
27+
rsc_support_enabled?: false
2628
)
2729

2830
# Configure immediate_hydration to true for tests since they expect that behavior

0 commit comments

Comments
 (0)