effective_test_bot 1.7.5 → 1.7.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: 7fe9b29d95d569210cc29be16338fc09a937be97f7bc120d08cf4f88d0cf8dbe
4
- data.tar.gz: ae2d7efde341f9daf06df45208553e3b8fcd3e3a6b50f7691c3a95d8ed6466b9
3
+ metadata.gz: 5fcf5bbd4f2564e04006f6f0d3f26eed0d2081e41ce5116959cc0e897101c00a
4
+ data.tar.gz: 2a6631b5748aba171a30063b932fb3789134340b43c1c7382efc5e7d62cbf349
5
5
  SHA512:
6
- metadata.gz: 2d8d8a47b5ca97892884d53d298bbc30e148850e0b8d8288d12b8433266f43039265abde3df705f8a2e2aaaed889e70c1ba3bf0c2d3e16c4b9ad9f03c5f9cb7c
7
- data.tar.gz: a90e6b511355ff80f6e01532b96e2f66cbf00b6075255cfc841b9a9a2e649f65f7b4e0db9881eafcbb64152ab428955678fc4064039943fc40e1ac8ce19514c5
6
+ metadata.gz: aa39cc9f7965e3d689cfcf48e1ed0dc990eefb2b534a202c4d3ff7da16404d303b7906842e9bb63cc2c68b9885a12bcbcd3c3415e7c53e15ca31efcc57f40566
7
+ data.tar.gz: ea52a507f0e699ff925789156ac5fbb827c98f8ec1301c46bbb3e9f8b141ddaaea59a35b7cca6f65867123bc13afca9a4f7b11cbc819e4a02fd1dd6a87c4b749
@@ -1,3 +1,3 @@
1
1
  module EffectiveTestBot
2
- VERSION = '1.7.5'.freeze
2
+ VERSION = '1.7.7'.freeze
3
3
  end
@@ -33,7 +33,7 @@ module TestBotable
33
33
  # Instance Methods - Call me from within a test
34
34
  def devise_action_test(test:, **options)
35
35
  options[:email] ||= "unique-#{Time.zone.now.to_i}@example.com"
36
- options[:password] ||= '!Password123'
36
+ options[:password] ||= '!SecurePassword123'
37
37
  options[:username] ||= 'unique-username'
38
38
  options[:login] ||= 'unique-login'
39
39
  options[:user] ||= User.new
@@ -107,8 +107,7 @@ module EffectiveTestBotFormFaker
107
107
 
108
108
  when 'input_password'
109
109
  # Use the same password throughout a single test. Allows passwords and password_confirmations to match.
110
- @filled_password_fields ||= Faker::Internet.password
111
-
110
+ @filled_password_fields ||= LETTERS.sample(10).join + DIGITS.sample(6).join + Faker::Internet.password
112
111
  when 'input_radio'
113
112
  value_for_input_radio_field(field, fill_value)
114
113
 
@@ -42,7 +42,10 @@ module EffectiveTestBotLoginHelper
42
42
  end
43
43
  end
44
44
 
45
- def sign_up(email: Faker::Internet.email, password: Faker::Internet.password, **options)
45
+ def sign_up(email: nil, password: nil, **options)
46
+ email ||= Faker::Internet.email
47
+ password ||= "#{Faker::Internet.password}#{Faker::Internet.password}#{Faker::Internet.password}"
48
+
46
49
  visit (respond_to?(:new_user_registration_path) ? new_user_registration_path : '/users/sign_up')
47
50
 
48
51
  within('form[id^=new][id$=user]') do
@@ -32,7 +32,7 @@ module TestBot
32
32
  end
33
33
 
34
34
  test '04: activerecord can save a resource' do
35
- User.new(email: 'unique@testbot.com', password: '!Password123', password_confirmation: '!Password123').save(validate: false)
35
+ User.new(email: 'unique@testbot.com', password: '!SecurePassword123', password_confirmation: '!SecurePassword123').save(validate: false)
36
36
  assert_equal (@@original_users_count + 1), User.unscoped.count
37
37
  end
38
38
 
@@ -50,10 +50,10 @@ module TestBot
50
50
  end
51
51
 
52
52
  test '08: capybara database connection is shared' do
53
- user = User.new(email: 'unique@testbot.com', password: '!Password123', password_confirmation: '!Password123')
53
+ user = User.new(email: 'unique@testbot.com', password: '!SecurePassword123', password_confirmation: '!SecurePassword123')
54
54
  user.save!(validate: false)
55
55
 
56
- without_screenshots { sign_in_manually(user, '!Password123') }
56
+ without_screenshots { sign_in_manually(user, '!SecurePassword123') }
57
57
  assert_signed_in(message: "expected successful devise manual sign in with user created in this test.\nTry using one of the ActiveRecord shared_connection snippets in test/test_helper.rb")
58
58
  end
59
59
 
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.7.5
4
+ version: 1.7.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: 2025-07-31 00:00:00.000000000 Z
11
+ date: 2026-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails