-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extended must_rematch to other tests
- Loading branch information
Showing
14 changed files
with
602 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
--- | ||
pagy/extras/elasticsearch_rails::controller_methods::#pagy_elasticsearch_rails#test_0002_paginates records with defaults 1: | ||
- R-a-41 | ||
- R-a-42 | ||
- R-a-43 | ||
- R-a-44 | ||
- R-a-45 | ||
- R-a-46 | ||
- R-a-47 | ||
- R-a-48 | ||
- R-a-49 | ||
- R-a-50 | ||
- R-a-51 | ||
- R-a-52 | ||
- R-a-53 | ||
- R-a-54 | ||
- R-a-55 | ||
- R-a-56 | ||
- R-a-57 | ||
- R-a-58 | ||
- R-a-59 | ||
- R-a-60 | ||
pagy/extras/elasticsearch_rails::controller_methods::#pagy_elasticsearch_rails#test_0001_paginates response with defaults 1: | ||
- R-a-41 | ||
- R-a-42 | ||
- R-a-43 | ||
- R-a-44 | ||
- R-a-45 | ||
- R-a-46 | ||
- R-a-47 | ||
- R-a-48 | ||
- R-a-49 | ||
- R-a-50 | ||
- R-a-51 | ||
- R-a-52 | ||
- R-a-53 | ||
- R-a-54 | ||
- R-a-55 | ||
- R-a-56 | ||
- R-a-57 | ||
- R-a-58 | ||
- R-a-59 | ||
- R-a-60 | ||
pagy/extras/elasticsearch_rails::controller_methods::#pagy_elasticsearch_rails#test_0003_paginates with vars 1: | ||
- R-b-11 | ||
- R-b-12 | ||
- R-b-13 | ||
- R-b-14 | ||
- R-b-15 | ||
- R-b-16 | ||
- R-b-17 | ||
- R-b-18 | ||
- R-b-19 | ||
- R-b-20 | ||
pagy/extras/elasticsearch_rails::controller_methods::#pagy_elasticsearch_rails#test_0004_paginates with overflow 1: | ||
- R-b-991 | ||
- R-b-992 | ||
- R-b-993 | ||
- R-b-994 | ||
- R-b-995 | ||
- R-b-996 | ||
- R-b-997 | ||
- R-b-998 | ||
- R-b-999 | ||
- R-b-1000 | ||
pagy/extras/elasticsearch_rails::controller_methods::#pagy_elasticsearch7_rails#test_0004_paginates with overflow 1: | ||
- R-b-991 | ||
- R-b-992 | ||
- R-b-993 | ||
- R-b-994 | ||
- R-b-995 | ||
- R-b-996 | ||
- R-b-997 | ||
- R-b-998 | ||
- R-b-999 | ||
- R-b-1000 | ||
pagy/extras/elasticsearch_rails::controller_methods::#pagy_elasticsearch7_rails#test_0002_paginates records with defaults 1: | ||
- R-a-41 | ||
- R-a-42 | ||
- R-a-43 | ||
- R-a-44 | ||
- R-a-45 | ||
- R-a-46 | ||
- R-a-47 | ||
- R-a-48 | ||
- R-a-49 | ||
- R-a-50 | ||
- R-a-51 | ||
- R-a-52 | ||
- R-a-53 | ||
- R-a-54 | ||
- R-a-55 | ||
- R-a-56 | ||
- R-a-57 | ||
- R-a-58 | ||
- R-a-59 | ||
- R-a-60 | ||
pagy/extras/elasticsearch_rails::controller_methods::#pagy_elasticsearch7_rails#test_0001_paginates response with defaults 1: | ||
- R-a-41 | ||
- R-a-42 | ||
- R-a-43 | ||
- R-a-44 | ||
- R-a-45 | ||
- R-a-46 | ||
- R-a-47 | ||
- R-a-48 | ||
- R-a-49 | ||
- R-a-50 | ||
- R-a-51 | ||
- R-a-52 | ||
- R-a-53 | ||
- R-a-54 | ||
- R-a-55 | ||
- R-a-56 | ||
- R-a-57 | ||
- R-a-58 | ||
- R-a-59 | ||
- R-a-60 | ||
pagy/extras/elasticsearch_rails::controller_methods::#pagy_elasticsearch7_rails#test_0003_paginates with vars 1: | ||
- R-b-11 | ||
- R-b-12 | ||
- R-b-13 | ||
- R-b-14 | ||
- R-b-15 | ||
- R-b-16 | ||
- R-b-17 | ||
- R-b-18 | ||
- R-b-19 | ||
- R-b-20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
--- | ||
pagy/extras/headers::#pagy_headers#test_0001_returns the full headers hash 1: | ||
Link: <https://example.com:8080/foo?page=1>; rel="first", <https://example.com:8080/foo?page=2>; | ||
rel="prev", <https://example.com:8080/foo?page=4>; rel="next", <https://example.com:8080/foo?page=50>; | ||
rel="last" | ||
Current-Page: '3' | ||
Page-Items: '20' | ||
Total-Pages: '50' | ||
Total-Count: '1000' | ||
pagy/extras/headers::#pagy_headers#test_0001_returns the full headers hash 2: | ||
Link: | ||
first: https://example.com:8080/foo?page=1 | ||
prev: https://example.com:8080/foo?page=2 | ||
next: https://example.com:8080/foo?page=4 | ||
last: https://example.com:8080/foo?page=50 | ||
Current-Page: '3' | ||
Page-Items: '20' | ||
Total-Pages: '50' | ||
Total-Count: '1000' | ||
pagy/extras/headers::#pagy_headers#test_0002_returns custom headers hash 1: | ||
Link: <https://example.com:8080/foo?page=1>; rel="first", <https://example.com:8080/foo?page=2>; | ||
rel="prev", <https://example.com:8080/foo?page=4>; rel="next", <https://example.com:8080/foo?page=50>; | ||
rel="last" | ||
Per-Page: '20' | ||
Total: '1000' | ||
pagy/extras/headers::#pagy_headers#test_0002_returns custom headers hash 2: | ||
Link: | ||
first: https://example.com:8080/foo?page=1 | ||
prev: https://example.com:8080/foo?page=2 | ||
next: https://example.com:8080/foo?page=4 | ||
last: https://example.com:8080/foo?page=50 | ||
Per-Page: '20' | ||
Total: '1000' | ||
pagy/extras/headers::#pagy_headers#test_0003_returns the countless headers hash 1: | ||
Link: <https://example.com:8080/foo?page=1>; rel="first", <https://example.com:8080/foo?page=2>; | ||
rel="prev", <https://example.com:8080/foo?page=4>; rel="next" | ||
Current-Page: '3' | ||
Page-Items: '20' | ||
pagy/extras/headers::#pagy_headers#test_0003_returns the countless headers hash 2: | ||
Link: | ||
first: https://example.com:8080/foo?page=1 | ||
prev: https://example.com:8080/foo?page=2 | ||
next: https://example.com:8080/foo?page=4 | ||
Current-Page: '3' | ||
Page-Items: '20' | ||
pagy/extras/headers::#pagy_headers#test_0005_omit next on last page 1: | ||
Link: <https://example.com:8080/foo?page=1>; rel="first", <https://example.com:8080/foo?page=49>; | ||
rel="prev", <https://example.com:8080/foo?page=50>; rel="last" | ||
Current-Page: '50' | ||
Page-Items: '20' | ||
Total-Pages: '50' | ||
Total-Count: '1000' | ||
pagy/extras/headers::#pagy_headers#test_0005_omit next on last page 2: | ||
Link: | ||
first: https://example.com:8080/foo?page=1 | ||
prev: https://example.com:8080/foo?page=49 | ||
last: https://example.com:8080/foo?page=50 | ||
Current-Page: '50' | ||
Page-Items: '20' | ||
Total-Pages: '50' | ||
Total-Count: '1000' | ||
pagy/extras/headers::#pagy_headers#test_0004_omit prev on first page 1: | ||
Link: <https://example.com:8080/foo?page=1>; rel="first", <https://example.com:8080/foo?page=2>; | ||
rel="next", <https://example.com:8080/foo?page=50>; rel="last" | ||
Current-Page: '1' | ||
Page-Items: '20' | ||
Total-Pages: '50' | ||
Total-Count: '1000' | ||
pagy/extras/headers::#pagy_headers#test_0004_omit prev on first page 2: | ||
Link: | ||
first: https://example.com:8080/foo?page=1 | ||
next: https://example.com:8080/foo?page=2 | ||
last: https://example.com:8080/foo?page=50 | ||
Current-Page: '1' | ||
Page-Items: '20' | ||
Total-Pages: '50' | ||
Total-Count: '1000' | ||
pagy/extras/headers::#pagy_headers_merge#test_0001_returns the full headers hash 1: !ruby/hash-with-ivars:Rack::Utils::HeaderHash | ||
ivars: | ||
:@names: | ||
link: Link | ||
current-page: Current-Page | ||
page-items: Page-Items | ||
total-pages: Total-Pages | ||
total-count: Total-Count | ||
elements: | ||
Link: <https://example.com:8080/foo?page=1>; rel="first", <https://example.com:8080/foo?page=2>; | ||
rel="prev", <https://example.com:8080/foo?page=4>; rel="next", <https://example.com:8080/foo?page=50>; | ||
rel="last" | ||
Current-Page: '3' | ||
Page-Items: '20' | ||
Total-Pages: '50' | ||
Total-Count: '1000' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.