Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (33 sloc) 1010 Bytes
require 'helper'
describe Twitter::Status do
describe "#created_at" do
it "should return a Time when set" do
status = Twitter::Status.new(:created_at => "Mon Jul 16 12:59:01 +0000 2007")
status.created_at.should be_a Time
end
it "should return nil when not set" do
status = Twitter::Status.new
status.created_at.should be_nil
end
end
describe "#geo" do
it "should return a Twitter::Point when set" do
status = Twitter::Status.new(:geo => {:type => "Point"})
status.geo.should be_a Twitter::Point
end
it "should return nil when not set" do
status = Twitter::Status.new
status.geo.should be_nil
end
end
describe "#place" do
it "should return a Twitter::Place when set" do
status = Twitter::Status.new(:place => {})
status.place.should be_a Twitter::Place
end
it "should return nil when not set" do
status = Twitter::Status.new
status.place.should be_nil
end
end
end
Something went wrong with that request. Please try again.