trying to stabilize issue with datetime in test suite
This commit is contained in:
parent
a78cb352e6
commit
25b57cdd2a
1 changed files with 2 additions and 2 deletions
|
|
@ -92,7 +92,7 @@ describe PublicFetcher do
|
|||
date = ActiveSupport::TimeZone.new('UTC').parse(post['created_at']).to_datetime
|
||||
|
||||
entry = StatusMessage.find_by_guid(post['guid'])
|
||||
entry.created_at.should eql(date)
|
||||
entry.created_at.to_datetime.should eql(date)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -108,7 +108,7 @@ describe PublicFetcher do
|
|||
date = ActiveSupport::TimeZone.new('UTC').parse(@now.to_s).to_datetime
|
||||
|
||||
entry = StatusMessage.find_by_guid(post['guid'])
|
||||
entry.interacted_at.should eql(date)
|
||||
entry.interacted_at.to_datetime.should eql(date)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue