Sha256: 2934f5a4d2e7f5ae85ae9099635c62ec5406249946194913c8a5caddd96518f6

Contents?: true

Size: 539 Bytes

Versions: 109

Compression:

Stored size: 539 Bytes

Contents

require 'spec_helper'

describe FbGraph::Insight, '.new' do

  it 'should setup all supported attributes' do
    attributes = {
      :name => 'name_for_the_stats',
      :period => 'day',
      :values => [{'key1' => 'value2'}, {'key2' => 'value2'}]
    }
    insight = FbGraph::Insight.new('foo/insights/bar', attributes)
    insight.identifier == 'foo/insights/bar'
    insight.period.should == 'day'
    insight.values.should == [{'key1' => 'value2'}, {'key2' => 'value2'}]
    insight.values.first[:key1].should == 'value2'
  end

end

Version data entries

109 entries across 109 versions & 1 rubygems

Version Path
fb_graph-2.7.17 spec/fb_graph/insight_spec.rb
fb_graph-2.7.16 spec/fb_graph/insight_spec.rb
fb_graph-2.7.15 spec/fb_graph/insight_spec.rb
fb_graph-2.7.14 spec/fb_graph/insight_spec.rb
fb_graph-2.7.13 spec/fb_graph/insight_spec.rb
fb_graph-2.7.12 spec/fb_graph/insight_spec.rb
fb_graph-2.7.11 spec/fb_graph/insight_spec.rb
fb_graph-2.7.10 spec/fb_graph/insight_spec.rb
fb_graph-2.7.9 spec/fb_graph/insight_spec.rb
fb_graph-2.7.8 spec/fb_graph/insight_spec.rb
fb_graph-2.7.7 spec/fb_graph/insight_spec.rb
fb_graph-2.7.6 spec/fb_graph/insight_spec.rb
fb_graph-2.7.5 spec/fb_graph/insight_spec.rb
fb_graph-2.7.4 spec/fb_graph/insight_spec.rb
fb_graph-2.7.3 spec/fb_graph/insight_spec.rb
fb_graph-2.7.2 spec/fb_graph/insight_spec.rb
fb_graph-2.7.1 spec/fb_graph/insight_spec.rb
fb_graph-2.7.0 spec/fb_graph/insight_spec.rb
fb_graph-2.6.7 spec/fb_graph/insight_spec.rb
fb_graph-2.6.6 spec/fb_graph/insight_spec.rb