We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9c0c5b commit 125b364Copy full SHA for 125b364
spec/dummy/spec/system/integration_spec.rb
@@ -93,6 +93,17 @@ def finished_all_ajax_requests?
93
react_on_rails_pro_version: "",
94
rsc_support_enabled?: false
95
)
96
+
97
+ # Stub ReactOnRailsPro::Utils.pro_attribution_comment for all tests
98
+ # since react_on_rails_pro? is set to true by default
99
+ pro_module = Module.new
100
+ utils_module = Module.new do
101
+ def self.pro_attribution_comment
102
+ "<!-- Powered by React on Rails Pro (c) ShakaCode | Licensed -->"
103
+ end
104
105
+ stub_const("ReactOnRailsPro", pro_module)
106
+ stub_const("ReactOnRailsPro::Utils", utils_module)
107
end
108
109
around do |example|
0 commit comments