diff options
| author | Zog | 2017-12-27 16:08:48 +0100 |
|---|---|---|
| committer | Zog | 2017-12-27 16:40:08 +0100 |
| commit | bd5f7f02e62b397f4c2ddb71f1878ad0c6aba1be (patch) | |
| tree | 514dbd1bea649636bafa9d7def417bb85d698e0c /spec | |
| parent | 3792c128de8a2355ce6b4ceb28e7ee8afdf060c7 (diff) | |
| download | chouette-core-bd5f7f02e62b397f4c2ddb71f1878ad0c6aba1be.tar.bz2 | |
Refs #5407; Fix CI
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/db/schema_spec.rb | 2 | ||||
| -rw-r--r-- | spec/javascript/vehicle_journeys/actions_spec.js | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/spec/db/schema_spec.rb b/spec/db/schema_spec.rb index 585636124..a7fe0a162 100644 --- a/spec/db/schema_spec.rb +++ b/spec/db/schema_spec.rb @@ -44,6 +44,6 @@ Diff: #{diff} def diff RSpec::Support::Differ.new( color: RSpec::Matchers.configuration.color? - ).diff_as_string(@expected, @original) + ).diff_as_string(@original, @expected) end end diff --git a/spec/javascript/vehicle_journeys/actions_spec.js b/spec/javascript/vehicle_journeys/actions_spec.js index 683b64505..3af19ebc3 100644 --- a/spec/javascript/vehicle_journeys/actions_spec.js +++ b/spec/javascript/vehicle_journeys/actions_spec.js @@ -341,7 +341,7 @@ describe('when clicking on validate button inside purchase windows modal', () => vehicleJourneys, purchase_windows } - expect(actions.editVehicleJourneyPurchaseWindows(vehicleJourneys, timetables)).toEqual(expectedAction) + expect(actions.editVehicleJourneyPurchaseWindows(vehicleJourneys, purchase_windows)).toEqual(expectedAction) }) }) describe('when clicking on add button inside purchase windows modal', () => { @@ -357,14 +357,16 @@ describe('when using select2 to pick a purchase window', () => { let selectedTT = { id: 1, objectid: 2, - comment: 'test', + name: 'test', + color: 'color', } const expectedAction = { type: 'SELECT_PURCHASE_WINDOW_MODAL', selectedItem:{ id: selectedTT.id, objectid: selectedTT.objectid, - comment: selectedTT.comment, + name: selectedTT.name, + color: "color" } } expect(actions.selectPurchaseWindowsModal(selectedTT)).toEqual(expectedAction) |
