Sha256: 788bce7e839171cfbce1380a95402fed8698708f86497cda688d033e35fddf13

Contents?: true

Size: 1.31 KB

Versions: 12

Compression:

Stored size: 1.31 KB

Contents

# -*- encoding: utf-8 -*-

# Copyright (c) Microsoft Corporation
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY
# IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR
# PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.
#
# See the Apache Version 2.0 License for specific language governing
# permissions and limitations under the License.

require File.expand_path('../../spec_helper', __FILE__)

describe Yammer::Api::Network do

  before :all do
    @client = Yammer::Client.new(
      :site_url     => 'https://www.yammer.com',
      :client_id     => 'PRbTcg9qjgKsp4jjpm1pw',
      :client_secret => 'Xn7kp7Ly0TCY4GtZWkmSsqGEPg10DmMADyjWkf2U',
      :access_token  => 'TolNOFka9Uls2DxahNi78A'
    )
  end

  subject { @client }

  describe '#networks_current' do
    it 'should fetch network data' do
      subject.should_receive(:get).with('/api/v1/networks/current', { :include_suspended => true })
      subject.current_networks({ :include_suspended => true })
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
yam-2.4.1 spec/api/network_spec.rb
yam-2.4.0 spec/api/network_spec.rb
yam-2.3.0 spec/api/network_spec.rb
yam-2.2.0 spec/api/network_spec.rb
yam-2.1.2 spec/api/network_spec.rb
yam-2.1.1 spec/api/network_spec.rb
yam-2.1.0 spec/api/network_spec.rb
yam-2.0.2 spec/api/network_spec.rb
yam-2.0.1 spec/api/network_spec.rb
yam-2.0.0 spec/api/network_spec.rb
yam-1.1.0 spec/api/network_spec.rb
yam-1.0.0 spec/api/network_spec.rb