Sha256: 9e44890853a7ad08361425a52f65679026f966c044e1aaa0da7e3743e3c05ade

Contents?: true

Size: 436 Bytes

Versions: 7

Compression:

Stored size: 436 Bytes

Contents

describe ::PPC::API::Sogou::Account do
  auth = $sogou_auth

  it 'can get account info' do
      result = ::PPC::API::Sogou::Account::info( auth )
      is_success( result )
      expect(result[:result][:id].to_i).to be > 0 
  end

  it 'can update account' do
    update = {budget:0}
    result =  ::PPC::API::Sogou::Account::update( auth, update )
    is_success( result )
    expect(result[:result][:id].to_i).to be > 0 
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ppc-2.0.5 spec/sogou/api_sogou_account_spec.rb
ppc-2.0.4 spec/sogou/api_sogou_account_spec.rb
ppc-2.0.3 spec/sogou/api_sogou_account_spec.rb
ppc-2.0.2 spec/sogou/api_sogou_account_spec.rb
ppc-2.0.1 spec/sogou/api_sogou_account_spec.rb
ppc-2.0.0 spec/sogou/api_sogou_account_spec.rb
ppc-1.3.2 spec/sogou/api_sogou_account_spec.rb