Sha256: d597354644a31a0d48919d924d276e02bf44172331c7bb64856896af0122e329

Contents?: true

Size: 632 Bytes

Versions: 6

Compression:

Stored size: 632 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Travis::Client::Namespace do
  subject(:namespace) { described_class.new }

  it { is_expected.to be_a(Travis::Client::Methods) }

  it 'creates a dummy for repos' do
    repo = namespace::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
    namespace.access_token = 'token'
    user = namespace::User
    user.find_one.should be_a(Travis::Client::User)
    user.current.should be == user.find_one
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
travis-1.14.0 spec/client/namespace_spec.rb
travis-1.13.3 spec/client/namespace_spec.rb
travis-1.13.2 spec/client/namespace_spec.rb
travis-1.13.1 spec/client/namespace_spec.rb
travis-1.13.0 spec/client/namespace_spec.rb
travis-1.12.0 spec/client/namespace_spec.rb