Sha256: af8b40f582be185a732ea3e78ab9af7f95e531cb4ed8b322a4e7226b7533ecb3
Contents?: true
Size: 400 Bytes
Versions: 1
Compression:
Stored size: 400 Bytes
Contents
require 'spec_helpers/boot' describe CustomUserController do it 'should have user-specified protector subject' do CustomUserController.effective_protector_subject.should == :custom_current_user end it 'assigns proper user' do get :show, :id => 1 assigns(:custom_user).protector_subject?.should be_true assigns(:custom_user).protector_subject.should == 'custom_user' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
protector-inherited_resources-0.0.1 | spec/controllers/custom_user_spec.rb |