workarea-storefront 3.4.27 → 3.4.28

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
  SHA256:
3
- metadata.gz: fc1df21e787958651dcadd2190ce001415833d6465a557d774c2a6ad689a4ac9
4
- data.tar.gz: fdb6cd4da1988bdc5ab4637eaee06a2b7bc262931cacb2c8909d461efcd1f2a2
3
+ metadata.gz: ae8b669c2fe5a70bc129d2f6a792f9e78521e9c3e20ff4f1b5cb5738e6e66eec
4
+ data.tar.gz: 3aa1a3f539fdc0a5703a87a327202497f38b4667c5dfb41c37d31fcf70a919f4
5
5
  SHA512:
6
- metadata.gz: ca070811ad6541d7faa0f47b308949de2209c9c5051b9ee963d83d4db69dca2f8ff2604cfcb5ad1fadedb494e2bb6b4623673088fe8914cead0c84f3d017bf17
7
- data.tar.gz: 614f6058c6a74a9849c3355bbb6bd0354684a9886bb5edecfd7c04c8f3646d54a9aedb93c97f584fd130a59876da7151514d0ea72734b1c78f82b24181ad1a56
6
+ metadata.gz: aa3c7b3335fc41d2c298c05cdff7359a71cf6183226633e940ba5bcaa8b1a3eb72fef1b5965c5f7279f6be753239848258c591b7ea19f3699b9b640d69a9c206
7
+ data.tar.gz: f10111df08b0443327a2be38ec8bdb6bf63f6f29a88a28675d48d7dc8af2b31a7f9151ca8b69da948ba171c085c2f9a1f83b6e682241837cb44eab510983fb4d
@@ -34,7 +34,7 @@ module Workarea
34
34
  all = Recommendation::Searches.find(options[:q]) +
35
35
  model.query_suggestions
36
36
 
37
- all.take(3)
37
+ all.uniq.take(3)
38
38
  end
39
39
  end
40
40
 
@@ -51,6 +51,12 @@ module Workarea
51
51
 
52
52
  view_model = SearchViewModel.new(response)
53
53
  assert_equal(%w(one two), view_model.query_suggestions)
54
+
55
+ Recommendation::Searches.expects(:find).returns(%w(one))
56
+ response.query.expects(:query_suggestions).returns(%w(one))
57
+
58
+ view_model = SearchViewModel.new(response)
59
+ assert_equal(%w(one), view_model.query_suggestions)
54
60
  end
55
61
  end
56
62
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-storefront
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.27
4
+ version: 3.4.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Crouse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-21 00:00:00.000000000 Z
11
+ date: 2020-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.4.27
19
+ version: 3.4.28
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.4.27
26
+ version: 3.4.28
27
27
  description: Provides user-facing ecommerce storefront functionality for the Workarea
28
28
  Commerce Platform.
29
29
  email: