Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C chouette-core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 36
    • Merge requests 36
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Administrator
  • chouette-core
  • Merge requests
  • !25

Merged
Created Jun 23, 2017 by Administrator@rootMaintainer

VehicleJourney spec: Fix "uses an inclusive range" array matcher

  • Overview 0
  • Commits 1
  • Changes 1

Created by: teddywing

I had used eq because I was copying the other tests in .where_departure_time_between, but those matched only a single element inside the array. Here, since we're maching more than one, we need to use match_array in order to disregard the element order.

Didn't notice this at first because it worked on my local machine. In fact, it continued to work even after several tries. Needed to manually reverse the element order in order to get the test to fail. Cédric pointed out that my test was failing on CI.

Refs #3846

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: 3846-vehicle-journeys--fix-array-equality-in-spec