Skip to content

Commit ee5e044

Browse files
committed
💚 Fix specs for old Ruby
1 parent 90aad81 commit ee5e044

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/oauth2/access_token_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,15 +389,15 @@ def assert_initialized_token(target)
389389
let(:token) { "" }
390390

391391
it "raises on initialize" do
392-
block_is_expected.to raise_error(OAuth2::Error, {error: "OAuth2::AccessToken has no token", error_description: "Options are: {mode: :this_is_bad, raise_errors: true}"}.to_s)
392+
block_is_expected.to raise_error(OAuth2::Error, {error: "OAuth2::AccessToken has no token", error_description: "Options are: #{{mode: :this_is_bad, raise_errors: true}}"}.to_s)
393393
end
394394
end
395395

396396
context "when there is nil token" do
397397
let(:token) { nil }
398398

399399
it "raises on initialize" do
400-
block_is_expected.to raise_error(OAuth2::Error, {error: "OAuth2::AccessToken has no token", error_description: "Options are: {mode: :this_is_bad, raise_errors: true}"}.to_s)
400+
block_is_expected.to raise_error(OAuth2::Error, {error: "OAuth2::AccessToken has no token", error_description: "Options are: #{{mode: :this_is_bad, raise_errors: true}}"}.to_s)
401401
end
402402
end
403403
end
@@ -603,7 +603,7 @@ def assert_initialized_token(target)
603603

604604
context "when there is no refresh_token" do
605605
it "raises on initialize" do
606-
block_is_expected.to raise_error(OAuth2::Error, {error: "OAuth2::AccessToken has no token", error_description: "Options are: {raise_errors: true}"}.to_s)
606+
block_is_expected.to raise_error(OAuth2::Error, {error: "OAuth2::AccessToken has no token", error_description: "Options are: #{{raise_errors: true}}"}.to_s)
607607
end
608608
end
609609

@@ -629,7 +629,7 @@ def assert_initialized_token(target)
629629

630630
context "when there is no refresh_token" do
631631
it "raises on initialize" do
632-
block_is_expected.to raise_error(OAuth2::Error, {error: "OAuth2::AccessToken has no token", error_description: "Options are: {raise_errors: true}"}.to_s)
632+
block_is_expected.to raise_error(OAuth2::Error, {error: "OAuth2::AccessToken has no token", error_description: "Options are: #{{raise_errors: true}}"}.to_s)
633633
end
634634
end
635635

0 commit comments

Comments
 (0)