@@ -22,7 +22,7 @@ class PlainReactOnRailsHelper
2222 }
2323
2424 allow ( ReactOnRails ::Utils ) . to receive_messages (
25- react_on_rails_pro_licence_valid ? : true
25+ react_on_rails_pro ? : true
2626 )
2727
2828 # Configure immediate_hydration to true for tests since they expect that behavior
@@ -389,7 +389,7 @@ def helper.append_javascript_pack_tag(name, **options)
389389 subject ( :react_app ) { react_component ( "App" , props : props , immediate_hydration : true ) }
390390
391391 before do
392- allow ( ReactOnRails ::Utils ) . to receive ( :react_on_rails_pro_licence_valid ? ) . and_return ( false )
392+ allow ( ReactOnRails ::Utils ) . to receive ( :react_on_rails_pro ? ) . and_return ( false )
393393 end
394394
395395 it { is_expected . to include ( badge_html_string ) }
@@ -405,7 +405,7 @@ def helper.append_javascript_pack_tag(name, **options)
405405 subject ( :react_app ) { react_component ( "App" , props : props ) }
406406
407407 before do
408- allow ( ReactOnRails ::Utils ) . to receive ( :react_on_rails_pro_licence_valid ? ) . and_return ( false )
408+ allow ( ReactOnRails ::Utils ) . to receive ( :react_on_rails_pro ? ) . and_return ( false )
409409 end
410410
411411 around do |example |
@@ -421,7 +421,7 @@ def helper.append_javascript_pack_tag(name, **options)
421421 subject ( :react_app ) { react_component ( "App" , props : props , immediate_hydration : false ) }
422422
423423 before do
424- allow ( ReactOnRails ::Utils ) . to receive ( :react_on_rails_pro_licence_valid ? ) . and_return ( false )
424+ allow ( ReactOnRails ::Utils ) . to receive ( :react_on_rails_pro ? ) . and_return ( false )
425425 end
426426
427427 it { is_expected . not_to include ( badge_html_string ) }
@@ -437,7 +437,7 @@ def helper.append_javascript_pack_tag(name, **options)
437437
438438 before do
439439 allow ( ReactOnRails ::Utils ) . to receive_messages (
440- react_on_rails_pro_licence_valid ? : true
440+ react_on_rails_pro ? : true
441441 )
442442 end
443443
@@ -483,7 +483,7 @@ def helper.append_javascript_pack_tag(name, **options)
483483 subject ( :react_app ) { react_component_hash ( "App" , props : props , immediate_hydration : true ) }
484484
485485 before do
486- allow ( ReactOnRails ::Utils ) . to receive ( :react_on_rails_pro_licence_valid ? ) . and_return ( false )
486+ allow ( ReactOnRails ::Utils ) . to receive ( :react_on_rails_pro ? ) . and_return ( false )
487487 end
488488
489489 it "adds badge to componentHtml" do
@@ -496,7 +496,7 @@ def helper.append_javascript_pack_tag(name, **options)
496496
497497 before do
498498 allow ( ReactOnRails ::Utils ) . to receive_messages (
499- react_on_rails_pro_licence_valid ? : true
499+ react_on_rails_pro ? : true
500500 )
501501 end
502502
@@ -541,7 +541,7 @@ def helper.append_javascript_pack_tag(name, **options)
541541 subject ( :store ) { redux_store ( "reduxStore" , props : props , immediate_hydration : true ) }
542542
543543 before do
544- allow ( ReactOnRails ::Utils ) . to receive ( :react_on_rails_pro_licence_valid ? ) . and_return ( false )
544+ allow ( ReactOnRails ::Utils ) . to receive ( :react_on_rails_pro ? ) . and_return ( false )
545545 end
546546
547547 it { is_expected . to include ( badge_html_string ) }
@@ -557,7 +557,7 @@ def helper.append_javascript_pack_tag(name, **options)
557557 subject ( :store ) { redux_store ( "reduxStore" , props : props , immediate_hydration : false ) }
558558
559559 before do
560- allow ( ReactOnRails ::Utils ) . to receive ( :react_on_rails_pro_licence_valid ? ) . and_return ( false )
560+ allow ( ReactOnRails ::Utils ) . to receive ( :react_on_rails_pro ? ) . and_return ( false )
561561 end
562562
563563 it { is_expected . not_to include ( badge_html_string ) }
@@ -568,7 +568,7 @@ def helper.append_javascript_pack_tag(name, **options)
568568
569569 before do
570570 allow ( ReactOnRails ::Utils ) . to receive_messages (
571- react_on_rails_pro_licence_valid ? : true
571+ react_on_rails_pro ? : true
572572 )
573573 end
574574
0 commit comments