Sha256: 8457af3f7b73e6a3516171f84cee0effe75eef9bb0664dcde4525fe13757f610
Contents?: true
Size: 965 Bytes
Versions: 32
Compression:
Stored size: 965 Bytes
Contents
require File.join(File.dirname(__FILE__), '../spec_helper') describe FbGraph::Privacy, '.new' do it 'should setup all supported attributes' do attributes = { :value => 'CUSTOM', :friends => 'SOME_FRIENDS', :networks => '123,456,789', :allow => '999,888,777', :deny => '000,111,222' } privacy = FbGraph::Privacy.new(attributes) privacy.value.should == 'CUSTOM' privacy.friends.should == 'SOME_FRIENDS' privacy.networks.should == '123,456,789' privacy.allow.should == '999,888,777' privacy.deny.should == '000,111,222' end end describe FbGraph::Privacy, '.to_json' do it 'should return JSON object' do attributes = { :value => 'CUSTOM', :friends => 'SOME_FRIENDS', :networks => '123,456,789', :allow => '999,888,777', :deny => '000,111,222' } privacy = FbGraph::Privacy.new(attributes) privacy.to_json.should == attributes.to_json end end
Version data entries
32 entries across 32 versions & 1 rubygems