aboutsummaryrefslogtreecommitdiffstats
path: root/spec
AgeCommit message (Collapse)Author
2018-02-14Merge branch 'master' into 3562_ccset_affectation3562_ccset_affectationcedricnjanga
2018-02-13Merge pull request #216 from af83/5416_checksum_attributeJohan Van Ryseghem
5416 checksum attribute
2018-02-13Merge pull request #287 from af83/4963-import-cron-should-abort-old-importsJohan Van Ryseghem
4963 import cron should abort old imports
2018-02-13Refs #5707; Add specsZog
2018-02-13Merge pull request #291 from ↵Johan Van Ryseghem
af83/4758-cron-job-to-finalise-compliance_check_set-validations-- 4758 cron job to finalise compliance check set validations
2018-02-13Merge pull request #293 from af83/5815_add_required_fields_for_ccJohan Van Ryseghem
5815 add required fields for cc
2018-02-12Refs #5432; Fix vj#show.rablZog
2018-02-12Refs #5824; Add specs (and fix some)Zog
2018-02-12Refs #5824; Fix specsZog
2018-02-12Refs 5669; Fix specsZog
2018-02-12Refs #5669 @2h; Fix SpecsZog
2018-02-12Refs #5669; And more snapshotsZog
2018-02-12Refs #5669; Add more snapshotsZog
2018-02-12Refs #5669 @1h; Set invariant values in the snapshotsZog
2018-02-12Refs #5669; Add a preview for snapshots for easier debuggingZog
2018-02-12Refs #5669 @2h; Add a snapshot mechanism in the specsZog
2018-02-12Refs #4126 @6h; Add i18n to JSZog
2018-02-12Fix checksum-related specsZog
2018-02-12Refs #5417; Fix specsZog
2018-02-12Refs #5417; Update parents checksum when children are created or updatedZog
2018-02-12Refs 5832; Fix bug on ReferentialVehicleJourneys#index filtersZog
By default a value was always set on the "Line" filter, yielding misleading results.
2018-02-12Refs #5682; Add application_days field to calendarsZog
2018-02-12Fix specsZog
2018-02-12Refs #5754; Add a filter on calendars for ReferentialVJs#indexZog
2018-02-12Refs #5754; Add a filter on purchase_windows on ReferentialVJs#indexZog
2018-02-12Fix calendar mailer urlcedricnjanga
2018-02-12Refs #5683 @2H; Fix specs and refactor action_linksZog
Note: Did not fix the missing workgroup in the calendar mailer
2018-02-12Make some changes to avoid unnacessaty lines of codecedricnjanga
2018-02-12Merge pull request #298 from af83/5432-fix-vjas-json-serializationteddywing
5432 Fix vj#show.rabl
2018-02-09route_base_spec.rb: Fix checksum test as a result of factoryTeddy Wing
* The factory already creates `StopPoint`s for us, so we don't need to create any additional ones in the test. Previously this would give us eight stop points instead of three or five. * Update the checksum in the factory after generating stop points. We need to do this because otherwise the checksum will be incorrect, not taking into account the new stop points. Without this change, the checksum starts out in an inconsistent state and causes the: 1) Chouette::Route checksum behaves like checksum support doesn't change the checksum on save if the source hasn't been changed Failure/Error: expect(subject.checksum).to eq(checksum) expected: "bc0e7b37243682904bd7013108258fdc744b03e0c59ed1a30e24e112a49242c1" got: "b39d643fdd4f9d6ff62547750508af728a187de29a3d6e4295f9bb3d13559a51" (compared using ==) Shared Example Group: "checksum support" called from ./spec/models/chouette/route/route_base_spec.rb:5 # ./spec/support/checksum_support.rb:84:in `block (2 levels) in <top (required)>' test to fail. Refs #5416
2018-02-09Refs #5432; Fix vj#show.rablZog
2018-02-09Merge pull request #282 from af83/5824-autocomplete-stop-areas-scopeLuc Donnet
5824 autocomplete stop areas scope
2018-02-09Merge branch 'master' into 4126-add-i18n-jsLuc Donnet
2018-02-09Refs #4126 @6h; Add i18n to JSZog
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 #5824; Add specs (and fix some)5824-autocomplete-stop-areas-scopeZog
2018-02-09Refs #5824; Fix specsZog
2018-02-09Refs 5669; Fix specs5669-specs-snpashotsZog
2018-02-09Refs #5669 @2h; Fix SpecsZog
2018-02-09Refs #5669; And more snapshotsZog
2018-02-09Refs #5669; Add more snapshotsZog
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-08imports.rake(notify_parent): Use `ParentNotifier`Teddy Wing
Replace `ParentImportNotifier` with the new generalised `ParentNotifier`. This will allow us to use the same service for parent notification of both imports and compliance check sets. Delete the `ParentImportNotifier` class and spec as these are now superseded by `ParentNotifier`. Refs #4758
2018-02-08Add `ParentNotifier` serviceTeddy Wing
This is a takeoff on `ParentImportNotifier`. I just copied over the class and spec and generalised the service to work with `Import`-style interfaces. We can now use the same notifier service class for both imports and compliance check sets. Refs #4758
2018-02-08ComplianceCheckSet: Add `.abort_old`Teddy Wing
Copy over the `Import.abort_old` method to this class. For now I haven't bothered with moving it to a consolidated module. We'll see, maybe that's a better approach. For now I'm going with a relaxed copy-paste solution until we decide that the increased complexity of the module is worth the deduplication. We need this method to be able to abort stale imports. We'll be doing this, similarly to imports, in a regular cron job. Refs #4758
2018-02-08Refactoring spec checksum support5416_checksum_attribute--rb201802071702Xinhui
Refs #5416
2018-02-07Refs #5815 Add required fields to some compliance controlscedricnjanga