Sha256: 8393909bd546625b45bbbafa16f02d731932f41c58d6cc404e7622e7b9a1fc53

Contents?: true

Size: 1.02 KB

Versions: 405

Compression:

Stored size: 1.02 KB

Contents

require 'spec_helper'

describe Travis::Client::Job do
  let(:session) { Travis::Client.new }
  subject { session.job(4125097) }
  its(:number) { should be == '6180.2' }
  its(:state) { should be == 'passed' }
  its(:started_at) { should be_a(Time) }
  its(:finished_at) { should be_a(Time) }
  its(:inspect) { should be == "#<Travis::Client::Job: rails/rails#6180.2>" }
  its(:color) { should be == 'green' }
  its(:commit) { should be_a(Travis::Client::Commit) }
  its(:repository) { should be == session.repo('rails/rails') }
  its(:duration) { should be == 905 }

  it { should be == subject.build.jobs[1] }

  it { should_not be_pending      }
  it { should     be_started      }
  it { should     be_finished     }
  it { should     be_passed       }
  it { should_not be_errored      }
  it { should_not be_failed       }
  it { should_not be_canceled     }
  it { should     be_created      }
  it { should_not be_red          }
  it { should     be_green        }
  it { should_not be_yellow       }
  it { should_not be_unsuccessful }
end

Version data entries

405 entries across 405 versions & 3 rubygems

Version Path
travis-1.8.11.travis.1010.9 spec/client/job_spec.rb
travis-1.8.11.travis.1009.9 spec/client/job_spec.rb
travis-1.8.11.travis.1008.9 spec/client/job_spec.rb
travis-1.8.11.travis.1007.9 spec/client/job_spec.rb
travis-1.8.11.travis.1004.9 spec/client/job_spec.rb
travis-1.8.11.travis.1003.9 spec/client/job_spec.rb
travis-1.8.11.travis.1002.9 spec/client/job_spec.rb
travis-1.8.11.travis.1001.9 spec/client/job_spec.rb
travis-1.8.11.travis.1000.9 spec/client/job_spec.rb
travis-1.8.11.travis.998.9 spec/client/job_spec.rb
travis-1.8.10.travis.997.9 spec/client/job_spec.rb
travis-1.8.10 spec/client/job_spec.rb
travis-1.8.10.travis.994.9 spec/client/job_spec.rb
travis-1.8.10.travis.953.11 spec/client/job_spec.rb
travis-akerl-1.8.9.1 spec/client/job_spec.rb
travis-akerl-1.8.9 spec/client/job_spec.rb
travis-1.8.10.travis.950.11 spec/client/job_spec.rb
travis-1.8.10.travis.948.11 spec/client/job_spec.rb
travis-1.8.10.travis.946.11 spec/client/job_spec.rb
travis-1.8.10.travis.944.11 spec/client/job_spec.rb