Skip to content

Commit fcb5fbd

Browse files
authored
Merge branch 'master' into inspect-associations-for-computing-type
2 parents 8b29f37 + b3f6bda commit fcb5fbd

32 files changed

Lines changed: 34 additions & 38 deletions

.github/workflows/ruby.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ permissions:
1818

1919
jobs:
2020
test:
21-
runs-on: ubuntu-latest
21+
runs-on: ubuntu-22.04
2222
strategy:
2323
fail-fast: false
2424
matrix:
@@ -44,12 +44,9 @@ jobs:
4444
- ruby: "2.7"
4545
rails: "4.2"
4646
steps:
47-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v4
4848
- name: Set up Ruby
49-
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
50-
# change this to (see https://github.com/ruby/setup-ruby#versioning):
51-
# uses: ruby/setup-ruby@v1
52-
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
49+
uses: ruby/setup-ruby@v1
5350
with:
5451
ruby-version: ${{ matrix.ruby }}
5552
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

test/unit/association_test.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ class Hammer < TestResource
103103
end
104104
end
105105

106-
class AssociationTest < MiniTest::Test
107-
106+
class AssociationTest < Minitest::Test
108107
def test_default_properties_no_changes
109108
stub_request(:post, 'http://example.com/accounts').
110109
with(headers: { content_type: 'application/vnd.api+json', accept: 'application/vnd.api+json' }, body: {

test/unit/benchmark_dynamic_attributes_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'test_helper'
22
require 'benchmark'
33

4-
class BenchmarkDynamicAttributesTest < MiniTest::Test
4+
class BenchmarkDynamicAttributesTest < Minitest::Test
55
def test_can_parse_global_meta_data
66
stub_request(:get, "http://example.com/articles/1")
77
.to_return(headers: {content_type: "application/vnd.api+json"}, body: {

test/unit/coercion_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'test_helper'
22

3-
class CoercionTest < MiniTest::Test
3+
class CoercionTest < Minitest::Test
44
TIME_STRING = '2015-04-28 10:45:35 -0700'
55

66
class CoercionTypes < TestResource

test/unit/compound_document_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'test_helper'
22

3-
class CompoundDocumentTest < MiniTest::Test
3+
class CompoundDocumentTest < Minitest::Test
44

55
TEST_DATA = %{
66
{

test/unit/compound_non_included_document_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'test_helper'
22

3-
class CompoundNonIncludedDocumentTest < MiniTest::Test
3+
class CompoundNonIncludedDocumentTest < Minitest::Test
44

55
TEST_DATA = %{
66
{

test/unit/connection_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class CustomAdapterResource < TestResource
3636
}
3737
end
3838

39-
class ConnectionTest < MiniTest::Test
39+
class ConnectionTest < Minitest::Test
4040

4141
def test_basic
4242
assert_equal(NullConnection, CustomConnectionResource.connection_class)

test/unit/creation_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'test_helper'
22

3-
class CreationTest < MiniTest::Test
3+
class CreationTest < Minitest::Test
44

55
class CallbackTest < TestResource
66
include JsonApiClient::Helpers::Callbacks

test/unit/custom_endpoint_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Country < TestResource
77

88
end
99

10-
class CustomEndpointTest < MiniTest::Test
10+
class CustomEndpointTest < Minitest::Test
1111

1212
def test_collection_get
1313
stub_request(:get, "http://example.com/countries/autocomplete?starts_with=bel")

test/unit/custom_header_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'test_helper'
22

3-
class CustomHeaderTest < MiniTest::Test
3+
class CustomHeaderTest < Minitest::Test
44

55
class CustomHeaderResource < TestResource
66
end

0 commit comments

Comments
 (0)