effective_test_bot 1.2.8 → 1.2.11

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: f020934794c731261aa532ab1fd8859f2cafd2e4ac307e7c47915e24775c3bb1
4
- data.tar.gz: d151cf48ec7242676de9e9f98787c92aeaf454242659622592761fba89a9af3d
3
+ metadata.gz: 5a5962e48f7f15a1f1462eb0c29e1feb6b451557b627190c5d789cfe7bfaaab5
4
+ data.tar.gz: 0d0745d6d9fa469179d579f24f5bdb0699dd814ed1980e024090b3c8c46535f8
5
5
  SHA512:
6
- metadata.gz: 55ebfa44b864e7728d0296fb080316b17fac6e4e129417d40ca7c4cb5d26e61bc830ef8c02f0359aff343bb33a360916d11c54f4d957fab1f93e32af56c1dcae
7
- data.tar.gz: bf01f6eea8e21d3d3af6bd1b24a33ba052230b23b5921b745e6be17efbd9ef6263fba359444c83aada3bd4061a66b88ca6798b9a93f79913ca2307d4bd19cc23
6
+ metadata.gz: be710ed13d9985b0b82afe9aa47d51926d8de1468d425929882dd6be0718f74747c178a878f42a98189f2aadaa2bb4c56ac3f9364f0cc1fc9782b080104d30fd
7
+ data.tar.gz: b63467149981fde04d4f49ceb8e0d861f88b25815993fbae433ce2a7b305d0cccc695b1452340783a0a3bafd37e762ec796512d7db766c32fe70e1c702661036
@@ -3,15 +3,15 @@ module EffectiveTestBot
3
3
  engine_name 'effective_test_bot'
4
4
 
5
5
  config.autoload_paths += Dir[
6
- "#{config.root}/test/test_botable/",
7
- "#{config.root}/test/concerns/",
8
- "#{config.root}/test/support/"
6
+ "#{config.root}/test/test_botable",
7
+ "#{config.root}/test/concerns",
8
+ "#{config.root}/test/support"
9
9
  ]
10
10
 
11
11
  config.eager_load_paths += Dir[
12
- "#{config.root}/test/test_botable/",
13
- "#{config.root}/test/concerns/",
14
- "#{config.root}/test/support/"
12
+ "#{config.root}/test/test_botable",
13
+ "#{config.root}/test/concerns",
14
+ "#{config.root}/test/support"
15
15
  ]
16
16
 
17
17
  # Set up our default configuration options.
@@ -1,3 +1,3 @@
1
1
  module EffectiveTestBot
2
- VERSION = '1.2.8'.freeze
2
+ VERSION = '1.2.11'.freeze
3
3
  end
@@ -85,6 +85,7 @@ module EffectiveTestBotAssertions
85
85
  end
86
86
 
87
87
  def assert_page_status(status = 200, message: '(page_status) Expected :status: HTTP status code')
88
+ return if response_code == nil # This doesn't work well in some drivers
88
89
  assert_equal status, response_code, message.sub(':status:', status.to_s)
89
90
  end
90
91
 
@@ -29,13 +29,13 @@ module EffectiveTestBotFormFaker
29
29
  when 'input_text'
30
30
  classes = field['class'].to_s.split(' ')
31
31
 
32
- if classes.include?('date') # Let's assume this is a date input.
32
+ if classes.include?('effective_date') || classes.include?('date')
33
33
  if attribute.include?('end') || attribute.include?('expire') # Make sure end dates are after start dates
34
34
  Faker::Date.forward(days: 365).strftime('%Y-%m-%d')
35
35
  else
36
36
  Faker::Date.backward(days: 365).strftime('%Y-%m-%d')
37
37
  end
38
- elsif classes.include?('datetime')
38
+ elsif classes.include?('effective_datetime') || classes.include?('datetime')
39
39
  if attribute.include?('end') || attribute.include?('expire')
40
40
  Faker::Date.forward(days: 365).strftime('%Y-%m-%d %H:%m')
41
41
  else
@@ -123,7 +123,7 @@ module EffectiveTestBotFormFaker
123
123
  when 'input_url'
124
124
  Faker::Internet.url
125
125
 
126
- when 'textarea', 'textarea_textarea'
126
+ when 'textarea', 'textarea_textarea', 'trix-editor'
127
127
  Faker::Lorem.paragraph
128
128
 
129
129
  when 'input_hidden'
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.2.8
4
+ version: 1.2.11
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: 2021-10-20 00:00:00.000000000 Z
11
+ date: 2022-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails