Sha256: 52b647050f1078cd720150462d7981868fed1a2522e4f099de82a56b83fc08fe
Contents?: true
Size: 1.48 KB
Versions: 109
Compression:
Stored size: 1.48 KB
Contents
require 'spec_helper' describe FbGraph::Education, '.new' do it 'should setup all supported attributes' do attributes = { :school => { :id => 110149592341159, :name => "\u540c\u5fd7\u793e\u5927\u5b66" }, :degree => { :id => 110616875633830, :name => "Master of Engineering" }, :year => { :id => 104926492884272, :name => "2007" }, :concentration => [ { :id => 112303688789448, :name => "Engineering" }, { :id => 102358546472290, :name => "Intelligent Information" }, { :id => 108311762535367, :name => "Intelligent Systems Design Laboratory" } ] } education = FbGraph::Education.new(attributes) education.school.should == FbGraph::Page.new( 110149592341159, :name => "\u540c\u5fd7\u793e\u5927\u5b66" ) education.degree.should == FbGraph::Page.new( 110616875633830, :name => "Master of Engineering" ) education.year.should == FbGraph::Page.new( 104926492884272, :name => "2007" ) education.concentration.should == [ FbGraph::Page.new( 112303688789448, :name => "Engineering" ), FbGraph::Page.new( 102358546472290, :name => "Intelligent Information" ), FbGraph::Page.new( 108311762535367, :name => "Intelligent Systems Design Laboratory" ) ] end end
Version data entries
109 entries across 109 versions & 1 rubygems