summaryrefslogtreecommitdiff
path: root/spec/support/matchers/be_valid_commit.rb
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