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