Skip to content

Commit 2b51531

Browse files
committed
Update Ruby version and fix test mock references
1 parent 2fef504 commit 2b51531

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
ruby: [2.6, 2.7]
11+
ruby: [3.3, 3.4, 4.0]
1212

1313
steps:
1414
- uses: actions/checkout@v2

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby-2.7.4
1+
3.4.5

lib/business_central.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@
1919
require 'business_central/exceptions'
2020
require 'business_central/client'
2121
require 'business_central/web_service'
22+
require 'business_central/version'

test/business_central/client_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def test_authorize_throws_exception
8484
body: { error: 'unknown error' }.to_json
8585
)
8686

87-
mock = MiniTest::Mock.new
87+
mock = Minitest::Mock.new
8888
def mock.authorize_url(_arguments)
8989
response = Faraday.get(BusinessCentral::Client::DEFAULT_LOGIN_URL)
9090
response = OAuth2::Response.new(response)
@@ -106,7 +106,7 @@ def test_request_token_throws_exception
106106
body: { error: 'token error' }.to_json
107107
)
108108

109-
mock = MiniTest::Mock.new
109+
mock = Minitest::Mock.new
110110
def mock.get_token(*_params)
111111
response = Faraday.get(BusinessCentral::Client::DEFAULT_URL)
112112
response = OAuth2::Response.new(response)

0 commit comments

Comments
 (0)