spec/cantango/api/scope/user_spec.rb in cantango-api-0.1.1 vs spec/cantango/api/scope/user_spec.rb in cantango-api-0.1.2

- old
+ new

@@ -10,32 +10,32 @@ class User cantango end -class AdminUser - cantango +class Admin + tango_user :masquerade end describe CanTango::Api::Scope::User do subject { Context.new } before do - subject.current_user.active_account = subject.current_admin + subject.current_admin.masquerade_as subject.current_user end describe 'scope_user(scope, options)' do specify do subject.scope_user :user do |user| - user.candidate.should == subject.current_admin + user.subject.should == subject.current_user end end end describe 'real_user(scope, options)' do specify do subject.real_user :user do |user| - user.candidate.should == subject.current_user + user.subject.should == subject.current_user end end end end \ No newline at end of file