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