Sha256: df384c6618aa37f24995267ff31e1a0250b2a4a4b55ecb0a25fa21ffbd75ee5e

Contents?: true

Size: 540 Bytes

Versions: 409

Compression:

Stored size: 540 Bytes

Contents

require 'spec_helper'

describe Travis::Client::Namespace do
  it { should be_a(Travis::Client::Methods) }

  it 'creates a dummy for repos' do
    repo = subject::Repository
    repo.find_one('rails/rails').should be_a(Travis::Client::Repository)
    repo.find_many.should be_an(Array)
    repo.current.should be == repo.find_many
  end

  it 'creates a dummy for user' do
    subject.access_token = 'token'
    user = subject::User
    user.find_one.should be_a(Travis::Client::User)
    user.current.should be == user.find_one
  end
end

Version data entries

409 entries across 409 versions & 3 rubygems

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