aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/pundit
AgeCommit message (Collapse)Author
2018-04-29Fix specsZog
2018-04-27Refs #6572; Fix specsZog
2018-03-05Delete use of current_offer_workbench and replace by current_workbench Refs ↵Luc Donnet
#4658
2018-02-22Prevent error when PunditViewPolicy try to find undefined features5938-locale-selectorAlban Peignier
2018-02-09Refs 5669; Fix specs5669-specs-snpashotsZog
2018-02-09Refs #5669 @2h; Add a snapshot mechanism in the specsZog
2018-01-31Refs #5683 @2H; Fix specs and refactor action_linksZog
Note: Did not fix the missing workgroup in the calendar mailer
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-19Refs #5287; CR 1Zog
- Get rid of ActiveSupport::Concern in the spec helpers - Rename misnamed spec files
2017-12-19- Fix specs on connections_links/indexZog
- Fix specs on connections_links/show - Update pundit view specs helper to use the current referential when it has already been defined
2017-12-19Refs #5287;Zog
Add specs for the view. Refactor to come
2017-11-09Refs #4776 Add policies to ComplianceControl and ComplianceControlSetcedricnjanga
2017-09-26Fixes: #4440@0.5h;Robert
Added Controller Spec Fixed Older Specs
2017-07-10Refs: #4021@0.15h; Fixes Policy TestsRobert
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-04Refs: #3478@1hRobert
newapplication helper default authorization, (no if) -> * DefaultPolicy (all true) * Add some policies (LinePolicy) * Use `boiv:read` pour show, index * Adapted `table_builder`
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-06-15spec/Support::Pundit::Policies: Use UserContext instead of OpenStructTeddy Wing
There's a `UserContext` class that allows us to build user contexts. We should use the full type for this instead of creating an anonymous one for the context.
2017-05-29Refs: #3385; basic policy for boiv:*Robert
2017-05-24Refs: #3446; hotfixRobert
2017-05-24Refs: #3446; Applying to routes 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