spree_api 3.2.0.rc2 → 3.2.0.rc3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c22a692f3ce0e176a8c64f49a035770f712af5b3
|
4
|
+
data.tar.gz: 79f0cb842072ac3e99c9afc0091dcd470d5ed248
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dae71b783c2b81206761faf093fdaf0f0699ffb441b96912aa02d9cda1c67072c47488151ff0ae4e90dbd4bb58d2256c724b5f980628ee95e9eff67289853d6
|
7
|
+
data.tar.gz: 6ffe49ca73d2851b1ded6becfa38a771988091c94b7eab65e1a1d233bdebc164873a77943b20ea70f1f54b7f42b279d2cc8ae04497f9549e73bf0f72a744dd61
|
@@ -48,6 +48,15 @@ module Spree
|
|
48
48
|
expect(json_response['product_properties'].first['value']).to eq property.value
|
49
49
|
end
|
50
50
|
|
51
|
+
it "can search for product properties" do
|
52
|
+
product.product_properties.create(property_name: "Shirt Size")
|
53
|
+
product.product_properties.create(property_name: "Shirt Weight")
|
54
|
+
api_get :index, q: { property_name_cont: "size" }
|
55
|
+
expect(json_response["product_properties"].first['property_name']).to eq('Shirt Size')
|
56
|
+
expect(json_response["product_properties"].first).to have_attributes(attributes)
|
57
|
+
expect(json_response["count"]).to eq(1)
|
58
|
+
end
|
59
|
+
|
51
60
|
it "can see a single product_property" do
|
52
61
|
api_get :show, id: property_1.property_name
|
53
62
|
expect(json_response).to have_attributes(attributes)
|
@@ -7,7 +7,7 @@ module Spree
|
|
7
7
|
let(:taxonomy) { create(:taxonomy) }
|
8
8
|
let(:taxon) { create(:taxon, name: "Ruby", taxonomy: taxonomy) }
|
9
9
|
let(:taxon2) { create(:taxon, name: "Rails", taxonomy: taxonomy) }
|
10
|
-
let(:attributes) { ["id", "name", "pretty_name", "permalink", "parent_id", "taxonomy_id"] }
|
10
|
+
let(:attributes) { ["id", "name", "pretty_name", "permalink", "parent_id", "taxonomy_id", "meta_title", "meta_description"] }
|
11
11
|
|
12
12
|
before do
|
13
13
|
stub_authentication!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.0.
|
4
|
+
version: 3.2.0.rc3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Bigg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: spree_core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.2.0.
|
19
|
+
version: 3.2.0.rc3
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.2.0.
|
26
|
+
version: 3.2.0.rc3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rabl
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -271,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
271
271
|
version: 1.3.1
|
272
272
|
requirements: []
|
273
273
|
rubyforge_project:
|
274
|
-
rubygems_version: 2.
|
274
|
+
rubygems_version: 2.6.10
|
275
275
|
signing_key:
|
276
276
|
specification_version: 4
|
277
277
|
summary: Spree's API
|