Sha256: 1be996c869fc6608042532aa8b8255bb8ad93a8d204b93a101754d32b0e112c3

Contents?: true

Size: 535 Bytes

Versions: 409

Compression:

Stored size: 535 Bytes

Contents

require 'spec_helper'

describe Travis::Client::Methods do
  let(:session) { Travis::Client.new }
  subject { OpenStruct.new(:session => session).extend(Travis::Client::Methods) }
  before { subject.access_token = 'token' }

  its(:api_endpoint) { should be == 'https://api.travis-ci.org/' }
  its(:repos) { should be == session.find_many(Travis::Client::Repository) }
  its(:user) { should be == session.find_one(Travis::Client::User) }

  it 'fetches a single repo' do
    subject.repo(891).slug.should be == 'rails/rails'
  end
end

Version data entries

409 entries across 409 versions & 3 rubygems

Version Path
travis-1.8.14.travis.1178.9 spec/client/methods_spec.rb
travis-1.8.14.travis.1175.9 spec/client/methods_spec.rb
travis-1.8.14.travis.1172.9 spec/client/methods_spec.rb
travis-1.8.14.travis.1164.9 spec/client/methods_spec.rb
travis-1.8.14.travis.1163.9 spec/client/methods_spec.rb
travis-1.8.14.travis.1162.9 spec/client/methods_spec.rb
travis-1.8.14.travis.1160.9 spec/client/methods_spec.rb
travis-1.8.13 spec/client/methods_spec.rb
travis-1.8.14.travis.1156.9 spec/client/methods_spec.rb
travis-1.8.14.travis.1155.9 spec/client/methods_spec.rb
travis-1.8.13.travis.1152.9 spec/client/methods_spec.rb
travis-1.8.13.travis.1148.9 spec/client/methods_spec.rb
travis-1.8.12 spec/client/methods_spec.rb
travis-1.8.13.travis.1141.9 spec/client/methods_spec.rb
travis-1.8.12.travis.1136.9 spec/client/methods_spec.rb
travis-1.8.12.travis.1135.9 spec/client/methods_spec.rb
travis-1.8.12.travis.1125.9 spec/client/methods_spec.rb
travis-1.8.12.pre.rc1 spec/client/methods_spec.rb
travis-1.8.12.travis.1116.9 spec/client/methods_spec.rb
travis-1.8.12.travis.1111.9 spec/client/methods_spec.rb