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

Version Path
devise_masquerade-2.1.3 spec/models/user_spec.rb
devise_masquerade-2.1.2 spec/models/user_spec.rb
devise_masquerade-2.1.0 spec/models/user_spec.rb
devise_masquerade-2.0.3 spec/models/user_spec.rb
devise_masquerade-2.0.2 spec/models/user_spec.rb
devise_masquerade-2.0.1 spec/models/user_spec.rb
devise_masquerade-2.0.0 spec/models/user_spec.rb
devise_masquerade-1.3.12 spec/models/user_spec.rb
devise_masquerade-1.3.11 spec/models/user_spec.rb
devise_masquerade-1.3.10 spec/models/user_spec.rb
devise_masquerade-1.3.9 spec/models/user_spec.rb
devise_masquerade-1.3.8 spec/models/user_spec.rb
devise_masquerade-1.3.7 spec/models/user_spec.rb
devise_masquerade-1.3.6 spec/models/user_spec.rb
devise_masquerade-1.3.5 spec/models/user_spec.rb
devise_masquerade-1.3.4 spec/models/user_spec.rb
devise_masquerade-1.3.3 spec/models/user_spec.rb
devise_masquerade-1.3.2 spec/models/user_spec.rb
devise_masquerade-1.3.1 spec/models/user_spec.rb
devise_masquerade-1.3.0 spec/models/user_spec.rb