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

Version Path
casino-3.0.4 spec/controllers/listener/two_factor_authenticator_overview_spec.rb
casino-2.0.7 spec/controllers/listener/two_factor_authenticator_overview_spec.rb
casino-3.0.3 spec/controllers/listener/two_factor_authenticator_overview_spec.rb
casino-3.0.2 spec/controllers/listener/two_factor_authenticator_overview_spec.rb
casino-3.0.1 spec/controllers/listener/two_factor_authenticator_overview_spec.rb
casino-3.0.0 spec/controllers/listener/two_factor_authenticator_overview_spec.rb
casino-3.0.0.pre.2 spec/controllers/listener/two_factor_authenticator_overview_spec.rb
casino-3.0.0.pre.1 spec/controllers/listener/two_factor_authenticator_overview_spec.rb
casino-2.0.6 spec/controllers/listener/two_factor_authenticator_overview_spec.rb
casino-2.0.5 spec/controllers/listener/two_factor_authenticator_overview_spec.rb
casino-2.0.4 spec/controllers/listener/two_factor_authenticator_overview_spec.rb
casino-2.0.3 spec/controllers/listener/two_factor_authenticator_overview_spec.rb
casino-2.0.2 spec/controllers/listener/two_factor_authenticator_overview_spec.rb
casino-2.0.1 spec/controllers/listener/two_factor_authenticator_overview_spec.rb
casino-2.0.0 spec/controllers/listener/two_factor_authenticator_overview_spec.rb