Sha256: 6d7813d20917ebb8d6a80ac0df5585f95534da79e877c27ce3bef88a43d4eff8

Contents?: true

Size: 1.02 KB

Versions: 405

Compression:

Stored size: 1.02 KB

Contents

require 'spec_helper'

describe Travis::Client::Build do
  let(:session) { Travis::Client.new }
  subject { session.build(4125095) }
  its(:number) { should be == '6180' }
  its(:state) { should be == 'failed' }
  its(:duration) { should be == 5019 }
  its(:started_at) { should be_a(Time) }
  its(:finished_at) { should be_nil }
  its(:inspect) { should be == "#<Travis::Client::Build: rails/rails#6180>" }
  its(:color) { should be == 'red' }
  its(:commit) { should be_a(Travis::Client::Commit) }
  its(:jobs) { should be_an(Array) }
  its(:repository) { should be == session.repo('rails/rails') }

  it { should be == subject.repository.last_build }

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

Version data entries

405 entries across 405 versions & 3 rubygems

Version Path
travis-1.8.12.travis.1101.9 spec/client/build_spec.rb
travis-1.8.11 spec/client/build_spec.rb
travis-1.8.11.travis.1098.9 spec/client/build_spec.rb
travis-1.8.11.travis.1081.9 spec/client/build_spec.rb
travis-1.8.11.travis.1059.11 spec/client/build_spec.rb
travis-1.8.11.travis.1058.11 spec/client/build_spec.rb
travis-1.8.11.travis.1056.11 spec/client/build_spec.rb
travis-1.8.11.travis.1051.11 spec/client/build_spec.rb
travis-1.8.11.travis.1048.11 spec/client/build_spec.rb
travis-1.8.11.travis.1044.11 spec/client/build_spec.rb
travis-1.8.11.travis.1041.11 spec/client/build_spec.rb
travis-1.8.11.travis.1040.11 spec/client/build_spec.rb
travis-1.8.11.travis.1026.11 spec/client/build_spec.rb
travis-1.8.11.travis.1025.11 spec/client/build_spec.rb
travis-1.8.11.travis.1024.11 spec/client/build_spec.rb
travis-1.8.11.travis.1022.11 spec/client/build_spec.rb
travis-1.8.11.travis.1021.11 spec/client/build_spec.rb
travis-1.8.11.travis.1020.11 spec/client/build_spec.rb
travis-1.8.11.travis.1012.9 spec/client/build_spec.rb
travis-1.8.11.travis.1011.9 spec/client/build_spec.rb