aboutsummaryrefslogtreecommitdiffstats
path: root/spec
AgeCommit message (Collapse)Author
2017-12-26Enable GDL in StopArea enumeration. Refs #5311Alban Peignier
2017-12-26Refs #5382 @1h; Enable all area types for Stopareas in RoutesZog
Given that the organisation has the matching feature.
2017-12-26Add feature purchase_windows to organisation in PurchaseWindows specs. Refs ↵Alban Peignier
#5366
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-23Merge pull request #175 from ↵Luc Donnet
af83/5366-add-feature-specs-for-the-CRUD-actions-on-PurchaseWindo 5366 add feature specs for the crud actions on purchase windo
2017-12-22Update Specs to what should be the correct behaviourZog
2017-12-22Refactor stopPointsReducer spec;Zog
For now no bug has been fixed :-)
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-21Fix deprecated syntax in StopAreaReferentialsController specZog
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 pull request #172 from ↵Alban Peignier
af83/5355-add-button-to-opposite-itinerary-timetable Add opposite route button on timetables. Refs #5355
2017-12-21Change button type for opposite route link. Refs #53555355-add-button-to-opposite-itinerary-timetableAlban Peignier
2017-12-21Refs #5301 Add ransackable scope to PurchaseWindow for date_rangescedricnjanga
2017-12-21purchase_windows_spec: Add feature spec for destroyTeddy Wing
Check that `PurchaseWindow`s can be destroyed, starting from the `#index` page. Update the i18n key used in the decorator to get the text that appears in the alert when destroying a `PurchaseWindow` so that it correctly corresponds to the one used in the locale file. Refs #5366
2017-12-21purchase_windows_spec: Add feature test for PurchaseWindow updateTeddy Wing
Test that `PurchaseWindow`s can be updated starting from the `#index` page. Refs #5366
2017-12-21purchase_windows_spec: Add #index new/create testTeddy Wing
Add a feature spec that creates a new `PurchaseWindow` from the #index page. Fix i18n keys for `simple_form` to correctly show labels inside the form and be able to identify the correct elements inside the test. Refs #5366
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-21Merge pull request #150 from af83/5301-add_business_calendarsLuc Donnet
Refs #5301 First draft for Business Calendars
2017-12-21Delete purchase_window from spec permission in permission translator Refs ↵Luc Donnet
#5301 @1
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-20Check stop_area_waiting_time feature to display StopArea#waiting_time. Refs ↵5351-stop-area-waiting-timeAlban Peignier
#5351
2017-12-20Add StopArea#waiting_time with support in stop_areas#index/show. Refs #5351Alban Peignier
2017-12-20Complete ReferentialVehicleJourneysController spec to test optional feature. ↵Alban Peignier
Refs #5341
2017-12-20Create ReferentialVehicleJourneysController and ↵Alban Peignier
/referentials/:id/vehicle_journeys. Refs #5341
2017-12-20Use login_user for anonymous controller used into FeatureChecker specs. Refs ↵5339-organisation-and-featuresAlban Peignier
#5339
2017-12-20Improve styles in FeatureCheck code. Refs #5339Alban Peignier
2017-12-20Fixes Organisation#has_feature? spec title. Refs #5339Alban Peignier
2017-12-20Create Organisation#features and FeatureChecker controller concerns. Refs #5339Alban Peignier
2017-12-20Add nozip.zip file for ImportsController specs. Refs #5317Alban Peignier
2017-12-20Remove binding.pry in specsAlban 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-20Remove archived test in CalendarPolicy specs. Refs #5325Alban Peignier
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 pull request #157 from af83/5311-stop-area-type-customizableAlban Peignier
Make customizable StopArea type. Refs #5311
2017-12-20Merge branch 'master' into 5333-add-policies-for-referentials-sharing5333-add-policies-for-referentials-sharingAlban Peignier
2017-12-20Merge pull request #155 from af83/5325-use-policies-for-calendars-sharingAlban Peignier
Use policies for calendar sharing. Refs #5325
2017-12-20Fix spec after rebase5325-use-policies-for-calendars-sharingZog
2017-12-19Fix compliance check set feature to use the correct titleLuc Donnet
2017-12-19Replace have_link_for_each_stop_area by have_link_for_each_item as espected. ↵Alban Peignier
Refs #5291 @5m
2017-12-19Refs #5325; Fix calendat policyZog
Remove the "!archived?" condition which makes no sense here.
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
2017-12-19Refs #5325@0.5h; Use policies for calendar sharingZog
Use policies to determine if a user is allowed to share a calendar, instead of a hardcoded string
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