Sha256: 793103f3b19ca348a0028877fc204eb9c6798622f0be66119fd97072438202fa

Contents?: true

Size: 823 Bytes

Versions: 56

Compression:

Stored size: 823 Bytes

Contents

require 'spec_helper'

describe Travis::Client::Worker do
  let(:session) { Travis::Client.new }
  subject { session.workers.first }

  its(:id)         { should be == 'foo'                         }
  its(:name)       { should be == 'ruby-1'                      }
  its(:host)       { should be == 'ruby-1.worker.travis-ci.org' }
  its(:state)      { should be == 'ready'                       }
  its(:color)      { should be == 'green'                       }
  its(:job)        { should be_a(Travis::Client::Job)           }
  its(:repository) { should be_a(Travis::Client::Repository)    }

  it { should be_ready }

  describe 'without payload' do
    subject { session.worker('foo') }
    its(:payload)    { should be == {}}
    its(:job)        { should be_nil  }
    its(:repository) { should be_nil  }
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
travis-1.6.2.travis.364.4 spec/client/worker_spec.rb
travis-1.6.1 spec/client/worker_spec.rb
travis-1.6.1.travis.363.4 spec/client/worker_spec.rb
travis-1.6.0 spec/client/worker_spec.rb
travis-1.5.9.travis.362.4 spec/client/worker_spec.rb
travis-1.5.9.travis.361.4 spec/client/worker_spec.rb
travis-1.5.9.travis.360.4 spec/client/worker_spec.rb
travis-1.5.9.travis.358.4 spec/client/worker_spec.rb
travis-1.5.8 spec/client/worker_spec.rb
travis-1.5.8.travis.356.4 spec/client/worker_spec.rb
travis-1.5.7 spec/client/worker_spec.rb
travis-1.5.7.travis.345.4 spec/client/worker_spec.rb
travis-1.5.7.travis.341.4 spec/client/worker_spec.rb
travis-1.5.7.travis.338.4 spec/client/worker_spec.rb
travis-1.5.6 spec/client/worker_spec.rb
travis-1.5.6.travis.337.4 spec/client/worker_spec.rb
travis-1.5.6.travis.336.4 spec/client/worker_spec.rb
travis-1.5.6.travis.333.4 spec/client/worker_spec.rb
travis-1.5.6.travis.332.4 spec/client/worker_spec.rb
travis-1.5.6.travis.330.4 spec/client/worker_spec.rb