Sha256: 9633c7bac59ea44a7f0295356d8c64a4e6924c6f3ecd8b6965cc68b51f481698
Contents?: true
Size: 590 Bytes
Versions: 1
Compression:
Stored size: 590 Bytes
Contents
require File.join(File.dirname(__FILE__), '../spec_helper') describe FbGraph::Tag, '#new' do it 'should setup all supported attributes' do attributes = { :id => "7901103", :name => "Arjun Banker", :x => 32.5, :y => 27.7778, :created_time => "2010-04-22T08:24:26+0000" } tag = FbGraph::Tag.new(attributes.delete(:id), attributes) tag.user.should == FbGraph::User.new('7901103', :name => "Arjun Banker") tag.x.should == 32.5 tag.y.should == 27.7778 tag.created_time.should == Time.parse("2010-04-22T08:24:26+0000") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fb_graph-0.0.8 | spec/fb_graph/tag_spec.rb |