Skip to content

Commit d8e9836

Browse files
Clarify naming of expected response w/ pagination but empty data
1 parent 7387266 commit d8e9836

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/adapter/json_api/pagination_links_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def expected_response_with_last_page_pagination_links
117117
end
118118
end
119119

120-
def expected_response_with_no_data_pagination_links
120+
def expected_response_with_empty_collection_pagination_links
121121
{}.tap do |hash|
122122
hash[:data] = []
123123
hash.merge! links: empty_collection_links
@@ -148,15 +148,15 @@ def test_pagination_links_when_zero_results_kaminari
148148

149149
adapter = load_adapter(using_kaminari(1), mock_request)
150150

151-
assert_equal expected_response_with_no_data_pagination_links, adapter.serializable_hash
151+
assert_equal expected_response_with_empty_collection_pagination_links, adapter.serializable_hash
152152
end
153153

154154
def test_pagination_links_when_zero_results_will_paginate
155155
@array = []
156156

157157
adapter = load_adapter(using_will_paginate(1), mock_request)
158158

159-
assert_equal expected_response_with_no_data_pagination_links, adapter.serializable_hash
159+
assert_equal expected_response_with_empty_collection_pagination_links, adapter.serializable_hash
160160
end
161161

162162
def test_last_page_pagination_links_using_kaminari

0 commit comments

Comments
 (0)