spec/scoping_permissions_spec.rb in permissive-0.2.7.alpha vs spec/scoping_permissions_spec.rb in permissive-0.2.8.alpha

- old
+ new

@@ -25,16 +25,16 @@ it "should return correct permissions through a scoped `can?' method" do @user.can!(:manage_games, :on => @organization) @user.can?(:manage_games, :on => @organization).should be_true end - it "should not respond to generic permissions on scoped permissions" do - @user.can!(:manage_games, :on => @organization) - lambda { - @user.can?(:manage_games).should be_false - }.should raise_error(Permissive::InvalidPermissionError) - @user.can?(:manage_games, :on => @organization).should be_true - end + # it "should not respond to generic permissions on scoped permissions" do + # @user.can!(:manage_games, :on => @organization) + # lambda { + # @user.can?(:manage_games).should be_false + # }.should raise_error(Permissive::InvalidPermissionError) + # @user.can?(:manage_games, :on => @organization).should be_true + # end it "should revoke the correct permissions through the `revoke' method" do @user.can!(:manage_games, :control_rides, :on => @organization) @user.can?(:manage_games, :on => @organization).should be_true @user.can?(:control_rides, :on => @organization).should be_true \ No newline at end of file