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.10.travis.943.11 spec/client/namespace_spec.rb
travis-1.8.10.travis.942.11 spec/client/namespace_spec.rb
travis-1.8.10.travis.941.11 spec/client/namespace_spec.rb
travis-1.8.10.travis.940.11 spec/client/namespace_spec.rb
travis-1.8.10.travis.935.11 spec/client/namespace_spec.rb
travis-1.8.10.travis.933.11 spec/client/namespace_spec.rb
travis-1.8.10.travis.931.11 spec/client/namespace_spec.rb
travis-1.8.10.travis.930.11 spec/client/namespace_spec.rb
travis-1.8.10.travis.929.11 spec/client/namespace_spec.rb
travis-1.8.10.travis.927.11 spec/client/namespace_spec.rb
travis-1.8.10.travis.925.11 spec/client/namespace_spec.rb
travis-1.8.10.travis.924.11 spec/client/namespace_spec.rb
travis-1.8.10.travis.923.11 spec/client/namespace_spec.rb
travis-1.8.10.travis.922.11 spec/client/namespace_spec.rb
travis-1.8.10.travis.921.11 spec/client/namespace_spec.rb
travis-1.8.9 spec/client/namespace_spec.rb
travis-1.8.9.travis.919.11 spec/client/namespace_spec.rb
travis-1.8.9.travis.918.11 spec/client/namespace_spec.rb
travis-1.8.9.travis.916.11 spec/client/namespace_spec.rb
travis-1.8.9.travis.875.3 spec/client/namespace_spec.rb