Class: Vx::Message::BuildInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/vx/message/testing.rb

Class Method Summary collapse

Class Method Details

.test_attributes(options = {}) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/vx/message/testing.rb', line 10

def test_attributes(options = {})
  {
    build_id:       1,
    commit_author:  'Автор по русски',
    commit_message: 'Сообщение по русски',
  }.merge(options)
end

.test_message(options = {}) ⇒ Object



18
19
20
# File 'lib/vx/message/testing.rb', line 18

def test_message(options = {})
  new test_attributes(options)
end