2019-07-25 01:27:42 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
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
|