workarea-testing 3.5.9 → 3.5.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/workarea/integration_test.rb +1 -0
- data/lib/workarea/performance_test.rb +1 -0
- data/lib/workarea/system_test.rb +1 -0
- data/lib/workarea/test_case.rb +22 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6fc183ae73e69464b21e8db06f0140a99f77ee610ce4081365da0368ea72d39
|
4
|
+
data.tar.gz: 387ecc1977c98fa476d0928475dac20a11aa8964faabc104a4acc1bc2653aca8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa405e1291f23d96d4b3a32e08cba3100f3146c7ee948b7e75faabe72a97d68bbaad09e400f55722dbb92ec9b48805462a779fd90cd7ac1de41bb5eb32c34b40
|
7
|
+
data.tar.gz: 32e820baac19729e666325edc85c5abc97d04495d004b4242a71be2711eee3bc43967dc9815f4b01d56e24b0ae3f2d2096a8e6f981fd46b083532ab2a35ff0d8
|
data/lib/workarea/system_test.rb
CHANGED
data/lib/workarea/test_case.rb
CHANGED
@@ -129,10 +129,11 @@ module Workarea
|
|
129
129
|
delegate :t, to: :I18n
|
130
130
|
end
|
131
131
|
|
132
|
-
def set_locales(available:, default:, current: nil)
|
132
|
+
def set_locales(available:, default:, current: nil, fallbacks: nil)
|
133
133
|
Rails.application.config.i18n.available_locales = I18n.available_locales = available
|
134
134
|
Rails.application.config.i18n.default_locale = I18n.default_locale = default
|
135
135
|
I18n.locale = current || default
|
136
|
+
I18n.fallbacks = fallbacks if I18n.respond_to?(:fallbacks=)
|
136
137
|
end
|
137
138
|
|
138
139
|
def save_locales
|
@@ -142,6 +143,7 @@ module Workarea
|
|
142
143
|
@current_i18n_available_locales = I18n.available_locales
|
143
144
|
@current_i18n_default_locale = I18n.default_locale
|
144
145
|
@current_i18n_locale = I18n.default_locale
|
146
|
+
@current_i18n_fallbacks = I18n.try(:fallbacks)
|
145
147
|
end
|
146
148
|
|
147
149
|
def restore_locales
|
@@ -151,6 +153,7 @@ module Workarea
|
|
151
153
|
I18n.available_locales = @current_i18n_available_locales
|
152
154
|
I18n.default_locale = @current_i18n_default_locale
|
153
155
|
I18n.locale = @current_i18n_locale
|
156
|
+
I18n.fallbacks = @current_i18n_fallbacks if I18n.respond_to?(:fallbacks=)
|
154
157
|
end
|
155
158
|
end
|
156
159
|
|
@@ -240,6 +243,23 @@ module Workarea
|
|
240
243
|
end
|
241
244
|
end
|
242
245
|
|
246
|
+
module Geocoder
|
247
|
+
extend ActiveSupport::Concern
|
248
|
+
|
249
|
+
included do
|
250
|
+
setup :save_geocoder_config
|
251
|
+
teardown :restore_geocoder_config
|
252
|
+
end
|
253
|
+
|
254
|
+
def save_geocoder_config
|
255
|
+
@original_geocoder_config = ::Geocoder.config.deep_dup
|
256
|
+
end
|
257
|
+
|
258
|
+
def restore_geocoder_config
|
259
|
+
::Geocoder.configure(@original_geocoder_config)
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
243
263
|
extend Decoration
|
244
264
|
extend RunnerLocation
|
245
265
|
include Setup
|
@@ -251,6 +271,7 @@ module Workarea
|
|
251
271
|
include Locales
|
252
272
|
include S3
|
253
273
|
include Encryption
|
274
|
+
include Geocoder
|
254
275
|
|
255
276
|
setup do
|
256
277
|
Workarea.config.send_email = false
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workarea-testing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.14
|
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-
|
11
|
+
date: 2020-06-25 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.
|
19
|
+
version: 3.5.14
|
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.
|
26
|
+
version: 3.5.14
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: capybara
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|