Sha256: cb148de3318213c511151e1eb9e2624854da1965b718651dee6fe3cfe1ba97fb

Contents?: true

Size: 781 Bytes

Versions: 22

Compression:

Stored size: 781 Bytes

Contents

h1. Scenarios

This scenarios folder should contain the specs, shared examples and models for various common User scenarios.

All scenarios should have a User and Guest (user), where the User is persisted and the Guest is not.

Scenarios:

* User and Guest only : 'guest_user'
* User, Admin and Guest : 'guest_admin_user'
* User, Guest and Admin with UserAccount, GuestAccount and AdminAccount : 'user_accounts'

Note that the GuestAccount should also not be persisted.

CanTango should be able to handle cases where the ability is either created with a user or a user account. In case there is no user account, the user_account variable should just point to the user.

The User and Account model classes must each be exended to allow can? and cannot? with the CanTango::Ability


Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
cantango-0.9.4.7 spec/active_record/scenarios/SCENARIOS README.textile
cantango-0.9.4.6 spec/active_record/scenarios/SCENARIOS README.textile
cantango-0.9.4.5 spec/active_record/scenarios/SCENARIOS README.textile
cantango-0.9.4.3 spec/active_record/scenarios/SCENARIOS README.textile
cantango-0.9.4.2 spec/active_record/scenarios/SCENARIOS README.textile
cantango-0.9.4.1 spec/active_record/scenarios/SCENARIOS README.textile
cantango-0.9.4 spec/active_record/scenarios/SCENARIOS README.textile
cantango-0.9.3.2 spec/active_record/scenarios/SCENARIOS README.textile
cantango-0.8.9.5 spec/active_record/scenarios/SCENARIOS README.textile
cantango-0.8.9.4 spec/active_record/scenarios/SCENARIOS README.textile
cantango-0.8.9.3 spec/active_record/scenarios/SCENARIOS README.textile
cantango-0.8.9.2 spec/active_record/scenarios/SCENARIOS README.textile
cantango-0.8.9.1 spec/active_record/scenarios/SCENARIOS README.textile
cantango-0.8.9 spec/active_record/scenarios/SCENARIOS README.textile
cantango-0.8.8.1 spec/active_record/scenarios/SCENARIOS README.textile
cantango-0.8.8 spec/active_record/scenarios/SCENARIOS README.textile
cantango-0.8.7 spec/active_record/scenarios/SCENARIOS README.textile
cantango-0.8.6.2 spec/active_record/scenarios/SCENARIOS README.textile
cantango-0.8.6.1 spec/active_record/scenarios/SCENARIOS README.textile
cantango-0.8.6 spec/active_record/scenarios/SCENARIOS README.textile