Class: Vx::Message::JobStatus

Inherits:
Object
  • Object
show all
Includes:
Beefcake::Message
Defined in:
lib/vx/message/testing.rb,
lib/vx/message/messages.pb.rb

Defined Under Namespace

Modules: Status

Class Method Summary collapse

Class Method Details

.test_attributes(options = {}) ⇒ Object



28
29
30
31
32
33
34
35
36
# File 'lib/vx/message/testing.rb', line 28

def test_attributes(options = {})
  {
    build_id: 1,
    job_id:   2,
    status:   0,
    tm:       1376137604,
    matrix:   ["env:FOO = 1", "rvm:1.9.3"]
  }.merge(options)
end

.test_message(options = {}) ⇒ Object



38
39
40
# File 'lib/vx/message/testing.rb', line 38

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