Sha256: 8744d5da68e6e9b3f8d2a7683166c5479bdd0f1d3f41feb0dea4041233c9f51d
Contents?: true
Size: 303 Bytes
Versions: 20
Compression:
Stored size: 303 Bytes
Contents
require 'spec_helper' describe User do let!(:user) { create(:user) } describe '#masquerade_key' do it 'should cache special key on masquerade' do expect(user).to receive(:to_sgid).with(expires_in: 1.minute, for: 'masquerade') { "secure_key" } user.masquerade_key end end end
Version data entries
20 entries across 20 versions & 1 rubygems