Sha256: 8a46834a3456885c471fe17ddd449048a8a0ab2f4eda1b10ff130a078ea76678

Contents?: true

Size: 931 Bytes

Versions: 299

Compression:

Stored size: 931 Bytes

Contents

require 'spec_helper'

describe Travis::Client::Build do
  let(:session) { Travis::Client.new }
  subject { session.build(4125095).commit }

  its(:sha) { should be == 'a0265b98f16c6e33be32aa3f57231d1189302400' }
  its(:short_sha) { should be == 'a0265b9' }
  its(:branch) { should be == 'master' }
  its(:message) { should be == 'Associaton -> Association' }
  its(:committed_at) { should be_a(Time) }
  its(:author_name) { should be == 'Steve Klabnik' }
  its(:author_email) { should be == 'steve@steveklabnik.com' }
  its(:committer_name) { should be == 'Steve Klabnik' }
  its(:committer_email) { should be == 'steve@steveklabnik.com' }
  its(:compare_url) { should be == 'https://github.com/rails/rails/compare/6581d798e830...a0265b98f16c' }
  its(:subject) { should be == 'Associaton -> Association' }

  specify "with missing data" do
    session.load("commit" => { "id" => 12 })['commit'].subject.should be_empty
  end
end

Version data entries

299 entries across 299 versions & 3 rubygems

Version Path
travis-1.9.1 spec/client/commit_spec.rb
travis-1.9.1.travis.1223.9 spec/client/commit_spec.rb
travis-1.9.1.travis.1220.9 spec/client/commit_spec.rb
travis-1.9.1.travis.1219.9 spec/client/commit_spec.rb
travis-1.9.1.travis.1216.9 spec/client/commit_spec.rb
travis-1.9.1.travis.1208.9 spec/client/commit_spec.rb
travis-1.9.1.travis.1207.9 spec/client/commit_spec.rb
travis-1.9.1.travis.1206.9 spec/client/commit_spec.rb
travis-1.9.1.travis.1205.9 spec/client/commit_spec.rb
travis-1.9.0 spec/client/commit_spec.rb
travis-1.9.1.travis.1201.9 spec/client/commit_spec.rb
travis-1.8.14.travis.1200.9 spec/client/commit_spec.rb
travis-1.8.14.travis.1199.9 spec/client/commit_spec.rb
travis-1.8.14.travis.1198.9 spec/client/commit_spec.rb
travis-1.8.14.travis.1197.9 spec/client/commit_spec.rb
travis-1.8.14.travis.1195.9 spec/client/commit_spec.rb
travis-1.8.14.travis.1192.9 spec/client/commit_spec.rb
travis-1.8.14.travis.1186.9 spec/client/commit_spec.rb
travis-1.8.14.travis.1184.9 spec/client/commit_spec.rb
travis-1.8.14.travis.1183.9 spec/client/commit_spec.rb