Sha256: aaebd6e27bac28d155697fe57d2c4342b22ae4aef1181f0b7d716e8c9d9f3ada
Contents?: true
Size: 592 Bytes
Versions: 7
Compression:
Stored size: 592 Bytes
Contents
require 'spec_helper' describe CASino::Listener::TwoFactorAuthenticatorOverview 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
7 entries across 7 versions & 1 rubygems