standardapi 5.0.0.12 → 5.0.0.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e4bd9a29e2b2aca1714dacb7fb88b4a3b68aa0a
4
- data.tar.gz: 696774eaffe23e7a31c2b05fe2c4b8d05aceacbe
3
+ metadata.gz: c59b61721bd50c3342ae8ad4746ec650646bff63
4
+ data.tar.gz: 3dc496b6b9c633722bfeb6bfe5fcef47b19edd49
5
5
  SHA512:
6
- metadata.gz: b06a888614e9e71a8fe72f2f999da46c639e7f22f306285bdf8ef48ea3031bf6604de46e0a64ba3a6a912f5eaf223314cacf48317ce96415283bd2234a6aa3c9
7
- data.tar.gz: 3b4922dbe3dfa8cc26ab3a2566f87a81e1291e9b49ef68b2040344cc2753047e768f70e2799f2ca4ba5b9f8bd216fa17facfb6d4ac569aedb093c3c541d554c7
6
+ metadata.gz: d9b9995365441d4d9dd77e0daa9f6df6994cc4097bcc61a3ae89830fe7b0853b60317eccc86395356c67a26ab551f5541253de8f40ae764ef93bdc48dab8ef39
7
+ data.tar.gz: 002220236b0cabea9fca6313f2eacdf6cc1b05fa794652942313e642a6e0a45f804291429695da1053a73a8ad4ff84489f2c643457d92630b0c9170bb94883d4
@@ -4,10 +4,10 @@ module StandardAPI
4
4
  extend ActiveSupport::Testing::Declarative
5
5
 
6
6
  test '#index.json' do
7
- get resource_path(:index, format: :json), params: { limit: 10 }
7
+ get resource_path(:index, format: :json), params: { limit: 10, order: orders.first }
8
8
  assert_response :ok
9
9
  models = @controller.instance_variable_get("@#{plural_name}")
10
- assert_equal model.all.map(&:id).sort, models.map(&:id).sort
10
+ assert_equal model.order(orders.first).limit(10).all.map(&:id).sort, models.map(&:id).sort
11
11
  assert JSON.parse(response.body).is_a?(Array)
12
12
  end
13
13
 
@@ -1,3 +1,3 @@
1
1
  module StandardAPI
2
- VERSION = '5.0.0.12'
2
+ VERSION = '5.0.0.13'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standardapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0.12
4
+ version: 5.0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Bracy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-01 00:00:00.000000000 Z
11
+ date: 2017-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails