spec/cantango/api/user/ability_api_spec.rb in cantango-0.9.4.1 vs spec/cantango/api/user/ability_api_spec.rb in cantango-0.9.4.2
- old
+ new
@@ -35,22 +35,22 @@
describe 'user_ability admin' do
specify { subject.user_ability(subject.current_admin).should be_a CanTango::Ability }
end
- describe 'current_ability :user' do
- specify { subject.current_ability(:user).should be_a CanTango::Ability }
+ describe 'current_user_ability :user' do
+ specify { subject.current_user_ability(:user).should be_a CanTango::Ability }
it 'should set the :user user correctly on ability' do
- subject.current_ability(:user).user.should == subject.current_user
+ subject.current_user_ability(:user).user.should == subject.current_user
end
end
- describe 'current_ability :admin' do
- specify { subject.current_ability(:admin).should be_a CanTango::Ability }
+ describe 'current_user_ability :admin' do
+ specify { subject.current_user_ability(:admin).should be_a CanTango::Ability }
it 'should set the :admin user correctly on ability' do
- subject.current_ability(:admin).user.should == subject.current_admin
+ subject.current_user_ability(:admin).user.should == subject.current_admin
end
end
end