Sha256: 85a237763a43fa794950608b6643a3a0406d129368b375a9d32fd4ca3f6d7263
Contents?: true
Size: 548 Bytes
Versions: 15
Compression:
Stored size: 548 Bytes
Contents
require 'spec_helper' describe CASino::OtherSessionsDestroyerListener do include CASino::Engine.routes.url_helpers let(:controller) { Struct.new(:cookies).new(cookies: {}) } let(:listener) { described_class.new(controller) } before(:each) do controller.stub(:redirect_to) end describe '#other_sessions_destroyed' do let(:service) { 'http://www.example.com/' } it 'redirects back to the URL' do controller.should_receive(:redirect_to).with(service) listener.other_sessions_destroyed(service) end end end
Version data entries
15 entries across 15 versions & 1 rubygems