debian-mirror-gitlab/spec/models/push_event_payload_spec.rb
2017-09-10 17:25:29 +05:30

16 lines
376 B
Ruby

require 'spec_helper'
describe PushEventPayload do
describe 'saving payloads' do
it 'does not allow commit messages longer than 70 characters' do
event = create(:push_event)
payload = build(:push_event_payload, event: event)
expect(payload).to be_valid
payload.commit_title = 'a' * 100
expect(payload).not_to be_valid
end
end
end