Sha256: 1664bb254951082cc61e60c03286264bd83d352780601d8a9db318ec8a65d248
Contents?: true
Size: 599 Bytes
Versions: 1
Compression:
Stored size: 599 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) tag.user.should == FbGraph::User.new('7901103', :name => "Arjun Banker") tag.name.should == '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-1.2.5 | spec/fb_graph/tag_spec.rb |