Class: Booth::Testing::Support::VirtualAuthenticators::Load
- Inherits:
-
Object
- Object
- Booth::Testing::Support::VirtualAuthenticators::Load
- Includes:
- Logging, Calls, Capybara::DSL
- Defined in:
- lib/booth/testing/support/virtual_authenticators/load.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/booth/testing/support/virtual_authenticators/load.rb', line 14 def call credential = virtual_authenticator.credentials.first # p 'A' * 100 # pp credential.instance_variable_get(:@sign_count) # p Booth::Models::Authenticator.sole.sign_count # p 'B' * 100 instance = ::Booth::Testing::Support::VirtualAuthenticators::Create.call( has_user_verification: true, ) log do "Attaching Virtual Authenticator Secrets to #{virtual_authenticator.instance_variable_get(:@id)}" end instance.add_credential(credential) # virtual_authenticator.instance_variable_set(:@id, instance.instance_variable_get(:@sign_count)) instance end |