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: d71248111fbc017e8ad203d0064fd31460dfb3f0
4
- data.tar.gz: cf1cd692871c272a99cac8daf4292e9caf9e51da
3
+ metadata.gz: c22a692f3ce0e176a8c64f49a035770f712af5b3
4
+ data.tar.gz: 79f0cb842072ac3e99c9afc0091dcd470d5ed248
5
5
  SHA512:
6
- metadata.gz: be5f0c949f4e6d6bd012b5726de79c58b2782d7fc3444c0827f53799cce3cc0e3ae73958f447e836db3916c3ff69ead165c58e3fcc48fe16ed22fd56c106bb23
7
- data.tar.gz: 365a3a561ede40bdf6cba9179bafa9e45ee468a3e8ed588c73267b1b707d35a28cf163310c6a56353db15ffb348d40d07fa06b68f3e63048626a4d201d701fae
6
+ metadata.gz: 7dae71b783c2b81206761faf093fdaf0f0699ffb441b96912aa02d9cda1c67072c47488151ff0ae4e90dbd4bb58d2256c724b5f980628ee95e9eff67289853d6
7
+ data.tar.gz: 6ffe49ca73d2851b1ded6becfa38a771988091c94b7eab65e1a1d233bdebc164873a77943b20ea70f1f54b7f42b279d2cc8ae04497f9549e73bf0f72a744dd61
@@ -99,7 +99,7 @@ module Spree
99
99
 
100
100
  @@taxon_attributes = [
101
101
  :id, :name, :pretty_name, :permalink, :parent_id,
102
- :taxonomy_id
102
+ :taxonomy_id, :meta_title, :meta_description
103
103
  ]
104
104
 
105
105
  @@inventory_unit_attributes = [
@@ -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.rc2
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: 2016-12-20 00:00:00.000000000 Z
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.rc2
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.rc2
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.5.1
274
+ rubygems_version: 2.6.10
275
275
  signing_key:
276
276
  specification_version: 4
277
277
  summary: Spree's API