Sha256: 9d0400036d3a7b1f9dab144394fb575e6673721f2dfa87402f7c61306eb98aa4
Contents?: true
Size: 590 Bytes
Versions: 15
Compression:
Stored size: 590 Bytes
Contents
require 'spec_helper' describe CASino::TwoFactorAuthenticatorOverviewListener do include CASino::Engine.routes.url_helpers let(:controller) { Struct.new(:cookies).new(cookies: {}) } let(:listener) { described_class.new(controller) } describe '#two_factor_authenticators_found' do let(:two_factor_authenticators) { [Object.new] } it 'assigns the two-factor authenticators' do listener.two_factor_authenticators_found(two_factor_authenticators) controller.instance_variable_get(:@two_factor_authenticators).should == two_factor_authenticators end end end
Version data entries
15 entries across 15 versions & 1 rubygems