Sha256: f76c717f33bad943a5aa804c3b262f6c5b8cc995e1f5080d441b32131bc6595a

Contents?: true

Size: 645 Bytes

Versions: 4

Compression:

Stored size: 645 Bytes

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) }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
travis-1.0.3 spec/client/repository_spec.rb
travis-1.0.2 spec/client/repository_spec.rb
travis-1.0.1 spec/client/repository_spec.rb
travis-1.0.0 spec/client/repository_spec.rb