workarea-storefront 3.5.5 → 3.5.6

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: 88320b47f1b6a3783e479d0a4d96bb63a3fdb793abeb394c2ccc2b01917aa32c
4
- data.tar.gz: 1c71e6d1a45db23b6deb003babfcbda3d059e8f41ed815f8eede1b00d9ead854
3
+ metadata.gz: ffc35f0bd53d2c7e43ff06839845b70f18a867e360738e9c802ffc1c7d034df2
4
+ data.tar.gz: e422ae7ac8690f526aca9680533f35abde169792b0990ee06db624ed1053ed34
5
5
  SHA512:
6
- metadata.gz: 1865a249d3c95d4ec77aa42df432ee244cdf36afcf7dc229c47acbe5404d3052c8de9507f0d510fe536fee118415f3db88d497836c99d4d5f1eeaf4de12cfe75
7
- data.tar.gz: ae7af7c1091a1f64b1d724c26cb6e2b9ceae76f0e63acc0d5f97c25886aeffa9c0ba7570a976898d0c53d60931b27bd0263f41f9553055be64036d41faa6b68f
6
+ metadata.gz: b4190640afe592dca7101f897cccd378d314d135c37ecf87dba22687a13b3bfa5a18131db4cf9a9bd38f07e5f60a8a74a621857b9c6c103b0c9e996daed74d2e
7
+ data.tar.gz: c263f65afe3e5a9c593eac9b9c34c5f09d826095ecc6cb1dcebe8aed10b55abba0275486744ed1926b45d8c8bb3d0d49c73ed44fcca7150aab48ea185e6bc81f
@@ -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.5.5
4
+ version: 3.5.6
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.5.5
19
+ version: 3.5.6
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.5.5
26
+ version: 3.5.6
27
27
  description: Provides user-facing ecommerce storefront functionality for the Workarea
28
28
  Commerce Platform.
29
29
  email: