aboutsummaryrefslogtreecommitdiffstats
path: root/spec/policies
AgeCommit message (Collapse)Author
2018-05-07Refs #6960; Add owners to workgroupsZog
And define policies
2018-04-27Refs #6572; Fix specsZog
2018-04-22Fix views spec for line_referential and stop_area referential ↵Luc Donnet
synchronization Refs #6306 @1
2018-04-16Refs #6476 Add merge permissions6476-merge-permissionscedricnjanga
2018-01-11Fixes specs after Referential#merged_at integration. Refs #5559Alban Peignier
2018-01-11Fix policyXinhui
Refs #5549
2018-01-08Refs: #5413@4h; Setting up db (chore) and specing desired behavior [skip-ci]Robert
- Adapted shared pundit examples to allow to check with archieved and finalised referentials - Speced desired behavior with this enhancement - finalise_referential helper in policy spec's support
2017-12-21BusinessCalendar => PurchaseWindowcedricnjanga
belongs_to referential
2017-12-20Remove archived test in CalendarPolicy specs. Refs #5325Alban Peignier
2017-12-20Merge branch 'master' into 5333-add-policies-for-referentials-sharing5333-add-policies-for-referentials-sharingAlban Peignier
2017-12-19Refs #5325; Fix calendat policyZog
Remove the "!archived?" condition which makes no sense here.
2017-12-19Refs #5325@0.5h; Use policies for calendar sharingZog
Use policies to determine if a user is allowed to share a calendar, instead of a hardcoded string
2017-12-19Refs #5333@1.5h; Use permissions to sync StopAreas and LinesZog
- add missing policies - update permissions translator - update views to check for the permission - update views helper to check for the permission - uipdate controllers to check for the permission
2017-11-30Fix import policy to not authorize destroy and not be linked with ↵Luc Donnet
referential state (archived) Refs #5093
2017-11-29Fixes Company spec. Refs #4967Alban Peignier
2017-11-29Fixes LinePolicy spec. Refs #4824Alban Peignier
2017-11-29Fixes StopAreaPolicy spec. Refs #4825Alban Peignier
2017-11-22Rebase master and resolve conflictscedricnjanga
2017-11-22Change the way we name classescedricnjanga
We now always use modules for namespaces => same structure for models, decorators, policies...
2017-11-13Refs #4952 Fix bug related to compliance control set action links displaycedricnjanga
2017-11-09Refs #4776 Add policies to ComplianceControl and ComplianceControlSetcedricnjanga
2017-09-26Specs fixed (from logical merge errors)Robert
2017-09-26Fixes: #4440@0.5h;Robert
Added Controller Spec Fixed Older Specs
2017-09-26Refs: #4440@1.5h;Robert
ImportPolicy changing *.imports →' imports.*
2017-09-19Compliance Control PolicyXinhui
Refs #4543
2017-09-15Refs: #4446@1.5h;Robert
* Make failing /delete_api_key_feature_spec pending - Seems Capybara only sees html from the partial api_keys/_form, but not the parent api_keys/edit, which happens to contain the delete link :( * ApiKeyPolicy adapted - update? depends on record's organisation as no referential present - create? depends on user's permission only as organisation will be correct anyway
2017-09-15Refs: #4446@0.3h; Integrated Policy Specs of #4442 and adapting them to the ↵Robert
needs of #4446
2017-09-14Fixes: #4442@0.5h;4442-api_keys-permissions-spexRobert
2017-09-14Hotfix from masterRobert
2017-09-11merged with masterRobert
2017-09-11Fixes #4189@4h Route DuplicationRobert
* Duplication of Route is triggered by link and UI forwarded to edit of duplicatee - Changing route, only POST duplicate_referential_line_route --> RoutesController#duplicate - Removing route GET duplicate_referential_line_route --> RoutesController#duplicate - Removing controller action RoutesController#post_duplicate * Link in Route Decorator depends on new policy RoutePolicy#decorate? * Adapting specs
2017-08-18Api_key policy classXinhui
2017-07-19Adapt test for clone policies changes (user from different organisation)cedricnjanga
2017-07-10Refs: #4021@0.15h; Fixes Policy TestsRobert
2017-07-10Fixes: #3478@2.5hRobert
- Decorator Spec Setup `spec/support/decortor_helpers.rb` - Speced - Fixed
2017-07-06Fixes: #3478@1.5hRobert
- Fixes remaining issues with LinePolicy, CalenderPolicy & RoutePolicy - Dead Code elimination
2017-07-06Refs:#3478@10h;Robert
Policy Refactoring and Policy Test Completion - All policies (and all permissions) under test. - Common patterns and potential problems identified... - ... and documented in DEVNOTES.md - some simply refactorings
2017-07-05Refs: #3478@1h;Robert
- All permissions tied to `!archived?` - Tests adapted - Policies refactored ? Is `create?` permission bound to `organisation_match?`
2017-07-04Refs: #3478@1h removed boiv-read-offer and BoivPolicyRobert
2017-06-30Spec fix and optimizationRobert
- Fixed bugs in Policy Specs (Shared methods were not using records) - Using build_stubbed instead of create for all Policy Methods (5.43s -> 3.75s)
2017-05-29Refs: 3385; Headless LoginPolicy defined and used in cas_sessions_controllerRobert
2017-05-29Refs: #3385; basic policy for boiv:*Robert
2017-05-24Refs: #3446; hotfixRobert
2017-05-24Fixes #3446; adding routing_contstraint_zones policiesRobert
2017-05-24Refs: #3446; Applying to routes policyRobert
2017-05-24Refs: #3446; Applying to time_tables- and lines policyRobert
2017-05-23Refs: 3446; basic archived policy implemented and used for time_table_policiesRobert
2017-05-23Refs: #3383; boiv intermediate policy speced and implmntdRobert
- Policy spex specific support code moved to spec/support/pundit - Shared Xample group for policies permitting access depening on one specific permission and organisation_match
2017-05-23Refs: #3383; sketching stif permission for boiv:read-offerRobert
2017-05-23Refs: #3383; policy speced & implmentedRobert