effective_test_bot 1.1.6 → 1.1.7

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: c24fe50d753b516984aa130401e2d9fbcb6c890fb05a608db84858775114c2b4
4
- data.tar.gz: f6829da6363086ab00399f34dd64f61474f1cdfa4beac293971ae9ffd5a49a13
3
+ metadata.gz: abf414ee8bd38e034522f4c36768cc7cc3de25295a5a1bc20caba1423ddb0afd
4
+ data.tar.gz: ecfb469f21409b8107e439405f591ecf408b4271f122625e50accc30835440ab
5
5
  SHA512:
6
- metadata.gz: ce480606e4195925263179db58b202fce6f0b90258028ae81a84ace1ccf6772663e7de57a361a175c09dd831f731e83646e94bddca0f74ac4644afb3b31aaa10
7
- data.tar.gz: 152037e151c306eefdb839af2e5a0230c0cbb28f2ab6a6eae756c8274e1ff5168da359d01fad839edf95917a1b790c6c97d072d4a74b6f5915383d9e62153143
6
+ metadata.gz: 0e5fdb1f9293394b8d6d35d26b5be09e2632c1401350acfba3070fdfca158620d82139f14e598bf9eeadad7214f8550d03d83ee8275d198e1c345105e08d92d0
7
+ data.tar.gz: 1cce4a0aa374315e1eb3d083054a24402fbba4b65ad876756e1f874e06d6a4b5e0b8e045ce1eb761eb82d56a4316523d2f4e05f2df4e6c95020cdec8b68891f3
@@ -1,3 +1,3 @@
1
1
  module EffectiveTestBot
2
- VERSION = '1.1.6'.freeze
2
+ VERSION = '1.1.7'.freeze
3
3
  end
@@ -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(3).join(' ').parameterize
80
+ Faker::Lorem.words.join(' ').parameterize
81
81
  else
82
- Faker::Lorem.words(3).join(' ').capitalize
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.6
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-23 00:00:00.000000000 Z
11
+ date: 2019-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails