aboutsummaryrefslogtreecommitdiffstats
path: root/spec/factories
AgeCommit message (Collapse)Author
2018-05-04Refs #6920; Fix specs6920-activate-newly-created-referentialsZog
2018-04-27Refs #6572; New Referential#Show for noredy referentialsZog
2018-04-27Refs #6572; Use new statesZog
2018-04-26Fix VehicleJourney SpecsZog
2018-04-04Refs #6089; Adds `attachment` Custom FieldsZog
As well as an helper to render them in a partial
2018-03-27Refs #6201; Remove short_name from calendarsZog
2018-03-12Refs #6133; Fix specsZog
2018-03-12Refs #6135; ExportsController#upload endpointZog
With token-based authentication
2018-03-12Refs #6133; Full UX for exportsZog
Also added a *dumb* `WorkgroupExport` for testing purposes.
2018-03-12refs #6133; Add some basic specsZog
2018-03-12Refs #6133; Fix specsZog
2018-02-26Propose some improvements on CustomFieldsZog
2018-02-13Merge pull request #216 from af83/5416_checksum_attributeJohan Van Ryseghem
5416 checksum attribute
2018-02-13Merge pull request #293 from af83/5815_add_required_fields_for_ccJohan Van Ryseghem
5815 add required fields for cc
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 #5824; Add specs (and fix some)5824-autocomplete-stop-areas-scopeZog
2018-02-07Refs #5815 Add required fields to some compliance controlscedricnjanga
2018-02-06Refs #5754; Add a filter on calendars for ReferentialVJs#indexZog
2018-02-06Fix StopArea validation breaking the specsZog
2018-01-31Refs #5754; Add a filter on calendars for ReferentialVJs#index5754-filter-journeys-on-calendarZog
2018-01-31Fix StopArea validation breaking the specsZog
2018-01-30Make some changes to avoid unnacessaty lines of codecedricnjanga
2018-01-11Refs #5493 @1h; Use local time in the Journeys editorZog
We store UTC times in the database though
2018-01-11Fix vehicle_journey_control for min max values Refs #5543 @2Luc Donnet
2018-01-11Fix factories for compliance control generic_attribute_control_min_max Refs ↵Luc Donnet
#5543 @1
2018-01-10Refs: #5505@0.5h, added tests and validationsRobert
2018-01-10Refs: #5505@1h; Spec discussed, model scaffolded [amend me] [skip-ci]Robert
2018-01-10Fixes: #5499; Added validations and associationsRobert
2018-01-10Refs: #5499@0.5h; Scaffolded WorkgroupRobert
Next: - spec associations and name - spec initialisation - implement
2018-01-08Refs #5455 @6h; Add time and distance between stops in Journey PatternsZog
- Adds a `JSON` attribute in the model - Adds the fields in the editor
2018-01-05Update TimeTable checksum into factory. Refs #5417Alban Peignier
2018-01-05Update VehicleJourney checksum in factory when stops are created. Refs #5417Alban Peignier
2018-01-02Merge pull request #186 from af83/5102-begin_of_association_chainLuc Donnet
5102 Use current_organisation as begin_of_association_chain
2018-01-02Merge pull request #187 from af83/5111-begin_of_association_chainLuc Donnet
5111 Use current_organisation as begin_of_association_chain
2017-12-28Fix spec LinePresenter due to no longer invalid factoryXinhui
Refs #5313
2017-12-28Use current_organisation as begin_of_association_chain in ↵Alban Peignier
StoAreasController. Refs #5111
2017-12-28Use current_organisation as begin_of_association_chain in ↵Alban Peignier
Lines/Companies/Networks/GroupOfLinesController. Refs #5102
2017-12-21Refs #5349 @1h; Deactivate StopAreas instead of destroying them5349-deactivate-stop-areasZog
- Update decorators (had to split `action_links` because of `StopPointDecorator` inheriting from `StopAreaDecorator`) - Add methods on model - Add routes - Add actions on controller (`Activatable` concern, shared with `LinesController`) - Add I18n keys
2017-12-21Merge pull request #172 from ↵Alban Peignier
af83/5355-add-button-to-opposite-itinerary-timetable Add opposite route button on timetables. Refs #5355
2017-12-21Fix edit, i18n and add feature spec for purchase window Refs #5301 @3Luc Donnet
2017-12-21Take review into accountcedricnjanga
2017-12-21BusinessCalendar => PurchaseWindowcedricnjanga
belongs_to referential
2017-12-21Refs #5301 First draft for Business Calendarscedricnjanga
2017-12-21Refs #5355 @0.5h; Add opposite route button on timetablesZog
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-18Create Chouette::AreaType to manage available StopArea type and associated ↵Alban Peignier
i18n. Refs #5311
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-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-11-27Merge branch '4941-refactoring_object_id'cedricnjanga