Skip to content

Commit

Permalink
rematched tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed May 12, 2021
1 parent 2a45321 commit 064a2b5
Show file tree
Hide file tree
Showing 11 changed files with 753 additions and 752 deletions.
198 changes: 99 additions & 99 deletions test/pagy/extras/bootstrap_test.rb.yml

Large diffs are not rendered by default.

208 changes: 104 additions & 104 deletions test/pagy/extras/bulma_test.rb.yml

Large diffs are not rendered by default.

54 changes: 27 additions & 27 deletions test/pagy/extras/elasticsearch_rails_test.rb.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
pagy/extras/elasticsearch_rails::controller_methods::#pagy_elasticsearch_rails#test_0002_paginates records with defaults 1:
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
Expand All @@ -20,7 +20,18 @@ pagy/extras/elasticsearch_rails::controller_methods::#pagy_elasticsearch_rails#t
- 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:
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
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
Expand All @@ -41,6 +52,17 @@ pagy/extras/elasticsearch_rails::controller_methods::#pagy_elasticsearch_rails#t
- R-a-58
- R-a-59
- R-a-60
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_elasticsearch_rails#test_0003_paginates with vars 1:
- R-b-11
- R-b-12
Expand All @@ -52,18 +74,7 @@ pagy/extras/elasticsearch_rails::controller_methods::#pagy_elasticsearch_rails#t
- 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_0001_paginates response with defaults 1:
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
Expand All @@ -84,18 +95,7 @@ pagy/extras/elasticsearch_rails::controller_methods::#pagy_elasticsearch7_rails#
- 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
pagy/extras/elasticsearch_rails::controller_methods::#pagy_elasticsearch7_rails#test_0002_paginates records with defaults 1:
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
Expand All @@ -116,7 +116,7 @@ pagy/extras/elasticsearch_rails::controller_methods::#pagy_elasticsearch7_rails#
- R-a-58
- R-a-59
- R-a-60
pagy/extras/elasticsearch_rails::controller_methods::#pagy_elasticsearch7_rails#test_0004_paginates with overflow 1:
pagy/extras/elasticsearch_rails::controller_methods::#pagy_elasticsearch_rails#test_0004_paginates with overflow 1:
- R-b-991
- R-b-992
- R-b-993
Expand Down
252 changes: 126 additions & 126 deletions test/pagy/extras/foundation_test.rb.yml

Large diffs are not rendered by default.

60 changes: 30 additions & 30 deletions test/pagy/extras/headers_test.rb.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
---
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'
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>;
Expand Down Expand Up @@ -29,6 +45,20 @@ pagy/extras/headers::#pagy_headers#test_0003_returns the countless headers hash
next: https://example.com:8080/foo?page=4
Current-Page: '3'
Page-Items: '20'
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_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"
Expand All @@ -45,20 +75,6 @@ pagy/extras/headers::#pagy_headers#test_0004_omit prev on first page 2:
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_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"
Expand All @@ -75,19 +91,3 @@ pagy/extras/headers::#pagy_headers#test_0005_omit next on last page 2:
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'
Loading

0 comments on commit 064a2b5

Please sign in to comment.