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.11.1 spec/client/namespace_spec.rb
travis-1.11.0 spec/client/namespace_spec.rb
travis-1.10.1.travis.1341.9 spec/client/namespace_spec.rb
travis-1.10.1.travis.1321.9 spec/client/namespace_spec.rb
travis-1.10.1.travis.1312.9 spec/client/namespace_spec.rb
travis-1.10.1.travis.1311.9 spec/client/namespace_spec.rb
travis-1.10.1.travis.1305.9 spec/client/namespace_spec.rb
travis-1.10.0 spec/client/namespace_spec.rb
travis-1.9.2.travis.1304.9 spec/client/namespace_spec.rb
travis-1.9.2.travis.1303.9 spec/client/namespace_spec.rb
travis-1.10.0.pre.rc4 spec/client/namespace_spec.rb
travis-1.10.0.pre.rc3 spec/client/namespace_spec.rb
travis-1.10.0.pre.rc2 spec/client/namespace_spec.rb
travis-1.9.2.travis.1288.9 spec/client/namespace_spec.rb
travis-1.9.2.travis.1285.9 spec/client/namespace_spec.rb
travis-1.9.2.travis.1279.9 spec/client/namespace_spec.rb
travis-1.10.0.pre.rc1 spec/client/namespace_spec.rb
travis-1.9.2.travis.1254.9 spec/client/namespace_spec.rb
travis-1.9.2.travis.1236.9 spec/client/namespace_spec.rb
travis-1.9.2.travis.1224.9 spec/client/namespace_spec.rb