aboutsummaryrefslogtreecommitdiffstats
path: root/spec
AgeCommit message (Collapse)Author
2017-12-19Refs #5291@0.5h; Update viewZog
Update the view to match the actual controller behaviour.
2017-12-19Refs: #5291@1h; Update TableBuilderHelperZog
Update TableBuilderHelper to allow the `selectable` param to be a lambda, thus allowing us to have row-based granularity.
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; Uniformize actions5287-clean-links-in-stop-areas-indexZog
2017-12-19Refs #5287; CR 1Zog
- Get rid of ActiveSupport::Concern in the spec helpers - Rename misnamed spec files
2017-12-19Refactor stopareas index specsZog
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; Minor CR improvementZog
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-19Refs #5291@0.5h; Update viewZog
Update the view to match the actual controller behaviour.
2017-12-19Refs: #5291@1h; Update TableBuilderHelperZog
Update TableBuilderHelper to allow the `selectable` param to be a lambda, thus allowing us to have row-based granularity.
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-19Merge branch '5287-clean-links-in-stop-areas-index'Zog
2017-12-19Controller spec AutocompleteStopAreasXinhui
Refs #5305
2017-12-19Referentials#create: Add flash message on referential duplicationTeddy Wing
When a "duplicate referential" action is initiated, show a flash message to let users know that it started and is in progress (and will take a while since it's an asynchronous task). Refs #5317
2017-12-19Referentials#validate: Update flash messageTeddy Wing
* Luc specified a new flash message string to use here. Update the old one with the new version. * Move the translation key to `notice.referentials.validate` because we have multiple "operation_in_progress" messages (this one for validation, and another for referential cloning/duplication). * Add a test to confirm that the flash message is set. Refs #5317
2017-12-19Imports#create: Add flash messageTeddy Wing
Add a message to let users know that the import has started and to be patient while it does its thing. Refs #5317
2017-12-19Remove unless subject alias_method. Use be_nil when possible. Refs #5283Alban Peignier
2017-12-19Move logic to ReferentialCloning. Improve specs. Refs #5283Alban Peignier
2017-12-19Merge pull request #159 from ↵Luc Donnet
af83/5317-add-flash-messages-to-inform-users-when-asynchronous-jo 5317 add flash messages to inform users when asynchronous jo
2017-12-19Merge pull request #149 from af83/5305_autocomplete_stop_area_unaccentLuc Donnet
5305 autocomplete stop area unaccent
2017-12-19Controller spec AutocompleteStopAreas5305_autocomplete_stop_area_unaccentXinhui
Refs #5305
2017-12-19Refs: #5311@0.1h; Minor CR changes5311-stop-area-type-customizableRobert
2017-12-18Referentials#create: Add flash message on referential duplicationTeddy Wing
When a "duplicate referential" action is initiated, show a flash message to let users know that it started and is in progress (and will take a while since it's an asynchronous task). Refs #5317
2017-12-18Clear Chouette::AreaType caches during specs. Refs #5311Alban Peignier
2017-12-18Add first specs on Chouette::AreaType. Refs #5311Alban Peignier
2017-12-18Create Chouette::AreaType to manage available StopArea type and associated ↵Alban Peignier
i18n. Refs #5311
2017-12-18Referentials#validate: Update flash messageTeddy Wing
* Luc specified a new flash message string to use here. Update the old one with the new version. * Move the translation key to `notice.referentials.validate` because we have multiple "operation_in_progress" messages (this one for validation, and another for referential cloning/duplication). * Add a test to confirm that the flash message is set. Refs #5317
2017-12-18Imports#create: Add flash messageTeddy Wing
Add a message to let users know that the import has started and to be patient while it does its thing. Refs #5317
2017-12-18Merge pull request #146 from af83/5283-refactor-referential-cloning-workerteddywing
#5283 - Simplifier ReferentialCloningWorker
2017-12-18Remove unless subject alias_method. Use be_nil when possible. Refs #5283Alban Peignier
2017-12-18Refs #5287; CR 1Zog
- Get rid of ActiveSupport::Concern in the spec helpers - Rename misnamed spec files
2017-12-15Refactor stopareas index specsZog
2017-12-15- 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-15Refs #5287;Zog
Add specs for the view. Refactor to come
2017-12-15Fixes: #5281@1.2h; View specs and minor CR change from #50065281-workbench-import-structural-bug-reading-zipRobert
- CR change from #5006, severity of zip file messages :warning -> :error - View specs for showing import_messages
2017-12-15Refs: #5281@0.33h; Speced Common Helper's string_keys_to_symbolRobert
2017-12-15Refs: #5006@0.7h; CR changes from #5006 & staring error_messages in imports/showRobert
- Renaming as requested STIF::NetexFile::Frame.get_line_object_id -> get_sgort_id - working on error_messages for imports#show
2017-12-14Refs: #5281@2h; Code Analysis first bugfixRobert
- Rebased #5006 upoon master and created #5281 from #5006 - Setup regression test based on client provided input - Fixed bug with multiple spurious directory occurances
2017-12-14Fixes: #5006@10h;Robert
Implementation of Filtering Out Referentials with foreign lines in `app/workers/workbench_import_worker.rb` - Using ZipService with the set of allowed lines of the organisation - Fixing Integration Specs of the worker - Refactoring, Debugging and Rebasing
2017-12-14Refs: #5006@12h;Robert
Implementing allowed vs foreign line lookup for the zip service - Adapting `lib/stif/netex_file.rb` to expose the already implemented matching - `app/services/zip_service.rb` augmented to check for allowed lines and returning forbidden lines - Specs with fixtures and using the beforementioned new zip support in the specs - Fixture directories for the new specs
2017-12-14Refs: #5006@3h;Robert
Zip Support for Specs, allowing to create zip archives in memory * create zip archive from hash or directory tree * Metaspecs -- commented out - for potential refactoring of Zip Support - as readable documentation on how to use Zip Support
2017-12-14Refs: #5006@3h;Robert
Working out how to check for allowed lines vs. foreign lines - Implement allowed_lines as `Organisation#lines_set` - Pushed line_id related stuff into `lib/stif/codif_line_id.rb` - Related Specs
2017-12-14Fixes ways to create lines in Workbench specAlban Peignier
2017-12-13Merge branch 'master' into stagingcedricnjanga
2017-12-13Adapt referential spec decorator according to referential#validate policy updatecedricnjanga
2017-12-13Fix compliance control block#edit view pageheadercedricnjanga
2017-12-13spec_helper: Exclude 'truncation' tests from normal runnerTeddy Wing
Now that I've skipped the referential lock tests that were set as 'truncation', we can revert back to old behaviour and not run the 'truncation' tests as part of the normal suite runner. This gets the tests passing again. Refs #5024