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.6.4.travis.395.4 spec/client/methods_spec.rb
travis-1.6.3 spec/client/methods_spec.rb
travis-1.6.3.travis.394.4 spec/client/methods_spec.rb
travis-1.6.3.travis.392.4 spec/client/methods_spec.rb
travis-1.6.3.travis.390.4 spec/client/methods_spec.rb
travis-1.6.3.travis.389.4 spec/client/methods_spec.rb
travis-1.6.3.travis.388.4 spec/client/methods_spec.rb
travis-1.6.3.travis.387.4 spec/client/methods_spec.rb
travis-1.6.3.travis.386.4 spec/client/methods_spec.rb
travis-1.6.3.travis.385.4 spec/client/methods_spec.rb
travis-1.6.3.travis.384.4 spec/client/methods_spec.rb
travis-1.6.3.travis.381.4 spec/client/methods_spec.rb
travis-1.6.3.travis.379.4 spec/client/methods_spec.rb
travis-1.6.3.travis.377.4 spec/client/methods_spec.rb
travis-1.6.3.travis.376.4 spec/client/methods_spec.rb
travis-1.6.3.travis.374.4 spec/client/methods_spec.rb
travis-1.6.3.travis.373.4 spec/client/methods_spec.rb
travis-1.6.2.travis.371.4 spec/client/methods_spec.rb
travis-1.6.2 spec/client/methods_spec.rb
travis-1.6.2.travis.370.4 spec/client/methods_spec.rb