Sha256: b71bcf2280e6689f3918320058157c928dc6a99dcc0155e220f891830a3ba2f9

Contents?: true

Size: 1.27 KB

Versions: 164

Compression:

Stored size: 1.27 KB

Contents

require 'spec_helper'

describe Travis::Client::Repository do
  let(:session) { Travis::Client.new }
  subject { session.repo('rails/rails') }

  its(:slug) { should be == 'rails/rails' }
  its(:description) { should_not be_empty }
  its(:last_build_id) { should be == 4125095 }
  its(:last_build_number) { should be == '6180' }
  its(:last_build_state) { should be == 'failed' }
  its(:last_build_duration) { should be == 5019 }
  its(:last_build_started_at) { should be_a(Time) }
  its(:last_build_finished_at) { should be_nil }
  its(:inspect) { should be == "#<Travis::Client::Repository: rails/rails>" }
  its(:key) { should be_a(Travis::Client::Repository::Key) }
  its(:last_build) { should be_a(Travis::Client::Build) }
  its(:color) { should be == 'red' }
  its(:github_language) { should be == 'Ruby' }
  its(:owner_name) { should be == 'rails' }
  its(:owner) { should be == session.account("rails") }

  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

164 entries across 164 versions & 1 rubygems

Version Path
travis-1.6.18.travis.607.5 spec/client/repository_spec.rb
travis-1.6.18.travis.606.5 spec/client/repository_spec.rb
travis-1.6.18.travis.605.5 spec/client/repository_spec.rb
travis-1.6.18.travis.604.5 spec/client/repository_spec.rb
travis-1.6.18.travis.596.5 spec/client/repository_spec.rb
travis-1.6.18.travis.595.5 spec/client/repository_spec.rb
travis-1.6.18.travis.594.5 spec/client/repository_spec.rb
travis-1.6.18.travis.592.5 spec/client/repository_spec.rb
travis-1.6.17 spec/client/repository_spec.rb
travis-1.6.17.travis.591.5 spec/client/repository_spec.rb
travis-1.6.17.travis.590.5 spec/client/repository_spec.rb
travis-1.6.17.travis.589.5 spec/client/repository_spec.rb
travis-1.6.17.travis.588.5 spec/client/repository_spec.rb
travis-1.6.17.travis.587.5 spec/client/repository_spec.rb
travis-1.6.16 spec/client/repository_spec.rb
travis-1.6.15.1 spec/client/repository_spec.rb
travis-1.6.15 spec/client/repository_spec.rb
travis-1.6.15.travis.580.6 spec/client/repository_spec.rb
travis-1.6.15.travis.566.6 spec/client/repository_spec.rb
travis-1.6.15.travis.565.6 spec/client/repository_spec.rb