Welcome to mirror list, hosted at ThFree Co, Russian Federation.

be_valid_commit.rb « matchers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3696e4d5f03730fb92efa34b9e0c5706040ac875 (plain)
1
2
3
4
5
6
7
8
RSpec::Matchers.define :be_valid_commit do
  match do |actual|
    actual &&
      actual.id == SeedRepo::Commit::ID &&
      actual.message == SeedRepo::Commit::MESSAGE &&
      actual.author_name == SeedRepo::Commit::AUTHOR_FULL_NAME
  end
end