gitlab-org--gitlab-foss/spec/support/matchers/be_valid_commit.rb

9 lines
246 B
Ruby
Raw Normal View History

2017-01-04 13:43:06 -05:00
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