Sha256: 150d1d3bcdfbd7ca9b8fca2827a23b4212587e0b7b36b222e629a251843cb7ef
Contents?: true
Size: 392 Bytes
Versions: 15
Compression:
Stored size: 392 Bytes
Contents
require 'spec_helper' describe DashboardController, type: :controller do context 'when logged in' do before { logged_in } context 'and admin masquerade by user' do let!(:user) { create(:user) } before do user.masquerade! get :index, :masquerade => user.masquerade_key end it { expect(current_user.reload).to eq(user) } end end end
Version data entries
15 entries across 15 versions & 1 rubygems