aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support
AgeCommit message (Collapse)Author
2018-05-10Test WorkbenchesController without workbenches.update permission. Refs #69606960-workgroup-editionAlban Peignier
2018-05-10Fix specs. Refs #6960Alban Peignier
2018-04-29Fix specsZog
2018-04-27Refs #6572; Fix specsZog
2018-03-30Fix spec/features/calendars_permissions_spec.rb to use correct Workgroup ↵Luc Donnet
Refs #6258 @1
2018-03-29Fix MinMax ValidationZog
2018-03-12refs #6133; Add some basic 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-20Refs #5863 @6h; Remove workbench id from the querystringZog
Infer it when possible, and use a nested otherwise
2018-02-13Merge pull request #216 from af83/5416_checksum_attributeJohan Van Ryseghem
5416 checksum attribute
2018-02-09checksum_support.rb: Add test that checksum is the same on updateTeddy Wing
Ensure the checksum doesn't change when we save it (and thus call `#update_checksum`) if the source hasn't changed. Refs #5416
2018-02-09Refs 5669; Fix specs5669-specs-snpashotsZog
2018-02-09Refs #5669 @2h; Fix SpecsZog
2018-02-09Refs #5669 @1h; Set invariant values in the snapshotsZog
2018-02-09Refs #5669; Add a preview for snapshots for easier debuggingZog
2018-02-09Refs #5669 @2h; Add a snapshot mechanism in the specsZog
2018-02-08checksum_support.rb: Rename `seperator` to `separator`Teddy Wing
Fix spelling. Refs #5416
2018-02-08Refactoring spec checksum support5416_checksum_attribute--rb201802071702Xinhui
Refs #5416
2018-02-07Refactoring use subject as factoryXinhui
Refs #5416
2018-02-06Fix checksum-related specsZog
2018-02-06Fix checksum-related 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-25Refs #5586 @2h; Fix specsZog
2018-01-11Fix vehicle_journey_control for min max values Refs #5543 @2Luc Donnet
2018-01-11Merge pull request #225 from af83/5535-compute-vehicle-journeys-timesLuc Donnet
5535 compute vehicle journeys times
2018-01-10Refs #5535 @2H; Automatically fill VJs tilmes when possibleZog
2018-01-10Refs #5535 @0.25h; Adds a `full_schedule?` on `JourneyPattern`Zog
To know if all the costs between the stops of the pattern are set.
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
2018-01-05Fix permission specs by including merges in Support::Permissions. Refs #5299Alban Peignier
2018-01-03Merge branch 'master' into ↵Luc Donnet
5024-prevent-duplicate-referentials-from-being-created-during-parallel-db-transactions--rb201711271659
2017-12-26Refs #5382 @1h; Enable all area types for Stopareas in RoutesZog
Given that the organisation has the matching feature.
2017-12-23Merge pull request #161 from ↵Luc Donnet
af83/5316-migrate-compliance-control-and-check-attributes-from-hs 5316 migrate compliance control and check attributes from hstore to json column type
2017-12-21Refs #5430 @2h; Deactivate lines instead of destroying themZog
- Add `activate` and `deactivate` actions in `LinesController`, as well as corresponding routes - Add `activate!` and `deactivate!` methods in `Chouette::Line`, as well as `activated?` - Add `activate?` and `deactivate?` permissions in `LinePolicy` - Add corresponding `action_links`in the Decorator - Create helper for these actions - Add an optional `'extra_class` to the Links - Update styles for ".delete-action" to handle the case where there are several - Add I18n keys accordingly
2017-12-21Merge branch 'master' into ↵Luc Donnet
5316-migrate-compliance-control-and-check-attributes-from-hs
2017-12-21Remove `hstore_accessor` usageTeddy Wing
The places we were using `hstore_accessor` have now been converted to Postgres JSON fields. Thus we no longer need `hstore_accessor` in order to add accessors for the fields. Instead we can use Rails' built-in support for Postgres JSON fields and create accessors for our JSON hash keys with `store_accessor`. We get rid of the data types because `store_accessor` doesn't work like that and JSON already types our values with primitive data types. Finally, add some extra validation tests now that the vaildation for our JSON fields should work. Refs #5316
2017-12-21Refs #5355 @0.5h; Add opposite route button on timetablesZog
2017-12-20Add StopArea#waiting_time with support in stop_areas#index/show. Refs #5351Alban Peignier
2017-12-20Merge pull request #151 from ↵Luc Donnet
af83/5281-workbench-import-structural-bug-reading-zip 5281 workbench import structural bug reading zip
2017-12-20Merge pull request #124 from af83/5006-wb_import_filter_refs_with_foreign_linesLuc Donnet
5006 wb import filter refs with foreign lines
2017-12-20Merge branch 'master' into 5333-add-policies-for-referentials-sharing5333-add-policies-for-referentials-sharingAlban Peignier
2017-12-19Refs #5291@0.1h; Fix rebase5291-disable-useless-checkboxes-on-referentials-indexZog
Fix integration_spec_helper after rebase
2017-12-19Ref #5291@2h; Specs setupZog
- Refactor specs helper to be more generic - Write missing specs for the Workbenches#show view We now have failing tests highlighting the bug
2017-12-19Ref #5291@2h; Specs setupZog
- Refactor specs helper to be more generic - Write missing specs for the Workbenches#show view We now have failing tests highlighting the bug
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-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-12-19Refs #5291@0.1h; Fix rebaseZog
Fix integration_spec_helper after rebase
2017-12-19Ref #5291@2h; Specs setupZog
- Refactor specs helper to be more generic - Write missing specs for the Workbenches#show view We now have failing tests highlighting the bug