Sha256: 3c32949cc15725474aff35af30db261ec976efeadf4757c8ad86ab2c99e46711

Contents?: true

Size: 512 Bytes

Versions: 13

Compression:

Stored size: 512 Bytes

Contents

require File.join(File.dirname(__FILE__), '../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(attributes)
    insight.period.should == 'day'
    insight.values.should == [{'key1' => 'value2'}, {'key2' => 'value2'}]
    insight.values.first[:key1].should == 'value2'
  end

end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
fb_graph-1.0.7 spec/fb_graph/insight_spec.rb
fb_graph-1.0.6 spec/fb_graph/insight_spec.rb
fb_graph-1.0.5 spec/fb_graph/insight_spec.rb
palidanx-fb_graph-1.0.4 spec/fb_graph/insight_spec.rb
fb_graph-1.0.4 spec/fb_graph/insight_spec.rb
fb_graph-1.0.3 spec/fb_graph/insight_spec.rb
fb_graph-1.0.2 spec/fb_graph/insight_spec.rb
fb_graph-1.0.1 spec/fb_graph/insight_spec.rb
fb_graph-1.0.0 spec/fb_graph/insight_spec.rb
fb_graph-0.8.0 spec/fb_graph/insight_spec.rb
fb_graph-0.7.3 spec/fb_graph/insight_spec.rb
fb_graph-0.7.2 spec/fb_graph/insight_spec.rb
fb_graph-0.7.1 spec/fb_graph/insight_spec.rb