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 +4 -4
- data/lib/standard_api/test_case/index_tests.rb +2 -2
- data/lib/standard_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c59b61721bd50c3342ae8ad4746ec650646bff63
|
4
|
+
data.tar.gz: 3dc496b6b9c633722bfeb6bfe5fcef47b19edd49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/standard_api/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|