Skip to content

Commit 6bd6eda

Browse files
Enhance pro features context by allowing multiple message stubs for improved test flexibility
1 parent 4a895c2 commit 6bd6eda

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/dummy/spec/system/integration_spec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ def finished_all_ajax_requests?
8888

8989
shared_context "with pro features and immediate hydration" do
9090
before do
91-
allow(ReactOnRails::Utils).to receive(:react_on_rails_pro?).and_return(true)
91+
allow(ReactOnRails::Utils).to receive_messages(
92+
react_on_rails_pro?: true,
93+
react_on_rails_pro_version: ""
94+
)
9295
end
9396

9497
around do |example|

0 commit comments

Comments
 (0)