CyberCraftInc / vacation_system

Cyber Craft Vacation System
0 stars 0 forks source link

Add RSpec features #11

Closed eleidan closed 9 years ago

eleidan commented 9 years ago

The aim of the feature tests is to check Team related behavior from user point of view. Additional changes in code are provided as well as authorization abstraction layer with Pundit in Rails part, and custom workaround in BB part. User abilities to create, update, and destroy teams depend on provided privileges which are determined by roles. User with the manager role in any team is able to create, update, and destroy any team.

Integrate the following tools:

Add the following feature specs:

Add TeamPolicy authorization Create authorization rules for the TeamsController. Update all related tests accordingly. Add policy tests.

Fixes:

Improvements:

Refactoring:

@alazarchuk , @epmlys , @JosephBuchma , @rubycop