Sha256: b6c267b323c8bd42430fba85f9d7e61da732a5561075d7d5f2ff6a0a9a89bfea

Contents?: true

Size: 1.15 KB

Versions: 4

Compression:

Stored size: 1.15 KB

Contents

require 'spec_helper'

describe Travis::Client::Repository do
  subject { Travis::Client.new.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' }

  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

4 entries across 4 versions & 1 rubygems

Version Path
travis-1.5.6.travis.297.4 spec/client/repository_spec.rb
travis-1.5.6.travis.296.4 spec/client/repository_spec.rb
travis-1.5.5 spec/client/repository_spec.rb
travis-1.5.4 spec/client/repository_spec.rb