Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
zzooeeyy committed Apr 29, 2024
1 parent 0aef12b commit 9d0123c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/shopify_app/controller_concerns/token_exchange_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ class TokenExchangeControllerTest < ActionController::TestCase
request.headers["HTTP_AUTHORIZATION"] = nil

@controller.expects(:with_token_refetch).raises(invalid_shopify_id_token_error)
@controller.stubs(:performed?).returns(true)
@controller.stubs(:performed?).returns(false, true)

with_application_test_routes do
get :ensure_render, params: { shop: @shop }
Expand All @@ -363,7 +363,7 @@ class TokenExchangeControllerTest < ActionController::TestCase
ShopifyApp::Auth::TokenExchange.stubs(:perform)

@controller.expects(:with_token_refetch).raises(invalid_shopify_id_token_error)
@controller.stubs(:performed?).returns(true)
@controller.stubs(:performed?).returns(false, true)

with_application_test_routes do
get :ensure_render, params: { shop: @shop }
Expand Down

0 comments on commit 9d0123c

Please sign in to comment.