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