Sha256: b2925bdc1077c758681fa513e0c29671e3d8fb6029a4d75f8c2a66bd3e07a5e6

Contents?: true

Size: 577 Bytes

Versions: 12

Compression:

Stored size: 577 Bytes

Contents

require 'spec_helper'

describe FbGraph2::Edge::AppInsights do
  let(:app) { FbGraph2::App.app('app_token') }

  describe '#app_link_hosts' do
    it 'should return an Array of FbGraph2::AppInsight' do
      mock_graph :get, 'app/app_insights/metric', 'app/app_insights', access_token: 'app_token' do
        insights = app.app_insights('metric')
        insights.should be_instance_of FbGraph2::Edge
        insights.should_not be_blank
        insights.each do |host|
          host.should be_instance_of FbGraph2::Struct::AppInsight
        end
      end
    end
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fb_graph2-1.3.0 spec/fb_graph2/edge/app_insights_spec.rb
fb_graph2-1.2.0 spec/fb_graph2/edge/app_insights_spec.rb
fb_graph2-1.1.1 spec/fb_graph2/edge/app_insights_spec.rb
fb_graph2-1.1.0 spec/fb_graph2/edge/app_insights_spec.rb
fb_graph2-1.0.1 spec/fb_graph2/edge/app_insights_spec.rb
fb_graph2-1.0.0 spec/fb_graph2/edge/app_insights_spec.rb
fb_graph2-0.9.1 spec/fb_graph2/edge/app_insights_spec.rb
fb_graph2-0.9.0 spec/fb_graph2/edge/app_insights_spec.rb
fb_graph2-0.8.0 spec/fb_graph2/edge/app_insights_spec.rb
fb_graph2-0.7.9 spec/fb_graph2/edge/app_insights_spec.rb
fb_graph2-0.7.8 spec/fb_graph2/edge/app_insights_spec.rb
fb_graph2-0.7.7 spec/fb_graph2/edge/app_insights_spec.rb