Sha256: 2444dd8faee821e32dbac2d8f4b184f58db8da85e9139c41c66bacca5fcad395
Contents?: true
Size: 1.52 KB
Versions: 1
Compression:
Stored size: 1.52 KB
Contents
require File.join(File.dirname(__FILE__), '../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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fb_graph-0.0.8 | spec/fb_graph/education_spec.rb |