Commit 96c70fefec6d996dcfbaa5406fbbd8862de901a0

Authored by Andrew Kane
1 parent b30c600a

Updated test names [skip ci]

Showing 1 changed file with 6 additions and 6 deletions   Show diff stats
test/order_test.rb
1 1 require_relative "test_helper"
2 2  
3 3 class OrderTest < Minitest::Test
4   - def test_order_hash
  4 + def test_hash
5 5 store_names ["Product A", "Product B", "Product C", "Product D"]
6 6 assert_order "product", ["Product D", "Product C", "Product B", "Product A"], order: {name: :desc}
7 7 end
8 8  
9   - def test_order_string
  9 + def test_string
10 10 store_names ["Product A", "Product B", "Product C", "Product D"]
11 11 assert_order "product", ["Product A", "Product B", "Product C", "Product D"], order: "name"
12 12 end
13 13  
14   - def test_order_id
  14 + def test_id
15 15 skip if cequel?
16 16  
17 17 store_names ["Product A", "Product B"]
... ... @@ -20,7 +20,7 @@ class OrderTest &lt; Minitest::Test
20 20 assert_order "product", [product_a, product_b].sort_by { |r| r.id.to_s }.map(&:name), order: {id: :asc}
21 21 end
22 22  
23   - def test_order_multiple
  23 + def test_multiple
24 24 store [
25 25 {name: "Product A", color: "blue", store_id: 1},
26 26 {name: "Product B", color: "red", store_id: 3},
... ... @@ -29,11 +29,11 @@ class OrderTest &lt; Minitest::Test
29 29 assert_order "product", ["Product A", "Product B", "Product C"], order: {color: :asc, store_id: :desc}
30 30 end
31 31  
32   - def test_order_unmapped_type
  32 + def test_unmapped_type
33 33 assert_order "product", [], order: {not_mapped: {unmapped_type: "long"}}
34 34 end
35 35  
36   - def test_order_array
  36 + def test_array
37 37 store [{name: "San Francisco", latitude: 37.7833, longitude: -122.4167}]
38 38 assert_order "francisco", ["San Francisco"], order: [{_geo_distance: {location: "0,0"}}]
39 39 end
... ...