Sha256: 228436bf14ef5ec2836bb69ceab1bd1bd9cbb4c414a805a06214988a2dd7ff44

Contents?: true

Size: 1.04 KB

Versions: 381

Compression:

Stored size: 1.04 KB

Contents

require 'spec_helper'

describe Travis::Client::Account do
  context "from all accounts" do
    let(:session) { Travis::Client.new }
    subject { session.accounts.first }
    its(:name) { should be == 'Konstantin Haase' }
    its(:login) { should be == 'rkh' }
    its(:type) { should be == 'user' }
    its(:repos_count) { should be == 200 }
    its(:inspect) { should be == "#<Travis::Client::Account: rkh>" }
  end

  context "known account" do
    let(:session) { Travis::Client.new }
    subject { session.account('rkh') }
    its(:name) { should be == 'Konstantin Haase' }
    its(:login) { should be == 'rkh' }
    its(:type) { should be == 'user' }
    its(:repos_count) { should be == 200 }
    its(:inspect) { should be == "#<Travis::Client::Account: rkh>" }
  end

  context "known account" do
    let(:session) { Travis::Client.new }
    subject { session.account('foo') }
    its(:name) { should be_nil }
    its(:login) { should be == 'foo' }
    its(:type) { should be_nil }
    its(:inspect) { should be == "#<Travis::Client::Account: foo>" }
  end
end

Version data entries

381 entries across 381 versions & 3 rubygems

Version Path
travis-1.8.12.travis.1101.9 spec/client/account_spec.rb
travis-1.8.11 spec/client/account_spec.rb
travis-1.8.11.travis.1098.9 spec/client/account_spec.rb
travis-1.8.11.travis.1081.9 spec/client/account_spec.rb
travis-1.8.11.travis.1059.11 spec/client/account_spec.rb
travis-1.8.11.travis.1058.11 spec/client/account_spec.rb
travis-1.8.11.travis.1056.11 spec/client/account_spec.rb
travis-1.8.11.travis.1051.11 spec/client/account_spec.rb
travis-1.8.11.travis.1048.11 spec/client/account_spec.rb
travis-1.8.11.travis.1044.11 spec/client/account_spec.rb
travis-1.8.11.travis.1041.11 spec/client/account_spec.rb
travis-1.8.11.travis.1040.11 spec/client/account_spec.rb
travis-1.8.11.travis.1026.11 spec/client/account_spec.rb
travis-1.8.11.travis.1025.11 spec/client/account_spec.rb
travis-1.8.11.travis.1024.11 spec/client/account_spec.rb
travis-1.8.11.travis.1022.11 spec/client/account_spec.rb
travis-1.8.11.travis.1021.11 spec/client/account_spec.rb
travis-1.8.11.travis.1020.11 spec/client/account_spec.rb
travis-1.8.11.travis.1012.9 spec/client/account_spec.rb
travis-1.8.11.travis.1011.9 spec/client/account_spec.rb