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