Skip to content

Commit

Permalink
fixing flake
Browse files Browse the repository at this point in the history
  • Loading branch information
perryqh committed Feb 16, 2024
1 parent 3e4e7d6 commit d3f4e25
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -820,9 +820,11 @@ module CodeOwnership
let(:require_github_teams) { true }

it 'reports CodeTeams without github.team keys' do
expect(CodeTeams.validation_errors(CodeTeams.all)).to eq([
"The following teams are missing `github.team` entries:\n\nconfig/teams/bar.yml\nconfig/teams/foo.yml\n"
])
errors = CodeTeams.validation_errors(CodeTeams.all)
expect(errors.length).to eq(1)
expect(errors.first).to include("The following teams are missing `github.team` entries:")
expect(errors.first).to include("config/teams/bar.yml")
expect(errors.first).to include("config/teams/foo.yml")
end
end

Expand Down

0 comments on commit d3f4e25

Please sign in to comment.