@@ -66,7 +66,11 @@ class ShopifyApp::ScriptTagsManagerTest < ActiveSupport::TestCase
66
66
} )
67
67
68
68
# Set up the sequence of responses
69
- @mock_client . stubs ( :query ) . returns ( empty_response ) . then . returns ( success_response ) . then . returns ( success_response ) . then . returns ( success_response )
69
+ @mock_client . stubs ( :query )
70
+ . returns ( empty_response )
71
+ . then . returns ( success_response )
72
+ . then . returns ( success_response )
73
+ . then . returns ( success_response )
70
74
71
75
@manager . create_script_tags ( session : @session )
72
76
@@ -453,7 +457,13 @@ class ShopifyApp::ScriptTagsManagerTest < ActiveSupport::TestCase
453
457
# Set up the sequence of responses for the GraphQL client
454
458
# The code will stop checking templates once it finds one that doesn't support app blocks
455
459
# So we only need to set up expectations for the queries that will actually be made
456
- @mock_client . stubs ( :query ) . returns ( theme_response ) . then . returns ( product_template_response ) . then . returns ( product_section_response ) . then . returns ( collection_template_response ) . then . returns ( collection_section_response ) . then . returns ( empty_script_tags_response )
460
+ @mock_client . stubs ( :query )
461
+ . returns ( theme_response )
462
+ . then . returns ( product_template_response )
463
+ . then . returns ( product_section_response )
464
+ . then . returns ( collection_template_response )
465
+ . then . returns ( collection_section_response )
466
+ . then . returns ( empty_script_tags_response )
457
467
458
468
# Expect script tag creation calls
459
469
expect_script_tag_creation ( "https://example-app.com/fancy.js" )
0 commit comments