effective_test_bot 1.1.6 → 1.1.7
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abf414ee8bd38e034522f4c36768cc7cc3de25295a5a1bc20caba1423ddb0afd
|
4
|
+
data.tar.gz: ecfb469f21409b8107e439405f591ecf408b4271f122625e50accc30835440ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e5fdb1f9293394b8d6d35d26b5be09e2632c1401350acfba3070fdfca158620d82139f14e598bf9eeadad7214f8550d03d83ee8275d198e1c345105e08d92d0
|
7
|
+
data.tar.gz: 1cce4a0aa374315e1eb3d083054a24402fbba4b65ad876756e1f874e06d6a4b5e0b8e045ce1eb761eb82d56a4316523d2f4e05f2df4e6c95020cdec8b68891f3
|
@@ -29,15 +29,15 @@ module EffectiveTestBotFormFaker
|
|
29
29
|
|
30
30
|
if classes.include?('date') # Let's assume this is a date input.
|
31
31
|
if attribute.include?('end') || attribute.include?('expire') # Make sure end dates are after start dates
|
32
|
-
Faker::Date.forward(365).strftime('%Y-%m-%d')
|
32
|
+
Faker::Date.forward(days: 365).strftime('%Y-%m-%d')
|
33
33
|
else
|
34
|
-
Faker::Date.backward(365).strftime('%Y-%m-%d')
|
34
|
+
Faker::Date.backward(days: 365).strftime('%Y-%m-%d')
|
35
35
|
end
|
36
36
|
elsif classes.include?('datetime')
|
37
37
|
if attribute.include?('end') || attribute.include?('expire')
|
38
|
-
Faker::Date.forward(365).strftime('%Y-%m-%d %H:%m')
|
38
|
+
Faker::Date.forward(days: 365).strftime('%Y-%m-%d %H:%m')
|
39
39
|
else
|
40
|
-
Faker::Date.backward(365).strftime('%Y-%m-%d %H:%m')
|
40
|
+
Faker::Date.backward(days: 365).strftime('%Y-%m-%d %H:%m')
|
41
41
|
end
|
42
42
|
elsif classes.include?('numeric')
|
43
43
|
value_for_input_numeric_field(field, "input.numeric[name$='[#{attribute}]']")
|
@@ -77,9 +77,9 @@ module EffectiveTestBotFormFaker
|
|
77
77
|
elsif attribute.include?('social_insurance_number') || attributes.include?('sin_number')
|
78
78
|
"#{DIGITS.sample(3).join} #{DIGITS.sample(3).join} #{DIGITS.sample(3).join}"
|
79
79
|
elsif attribute.include?('slug')
|
80
|
-
Faker::Lorem.words
|
80
|
+
Faker::Lorem.words.join(' ').parameterize
|
81
81
|
else
|
82
|
-
Faker::Lorem.words
|
82
|
+
Faker::Lorem.words.join(' ').capitalize
|
83
83
|
end
|
84
84
|
|
85
85
|
when 'input_checkbox'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_test_bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07
|
11
|
+
date: 2019-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|