fix up some specs

This commit is contained in:
Raphael Sofaer 2011-03-10 12:54:48 -08:00
parent ddbd5febb3
commit 8a419a84a6
2 changed files with 2 additions and 2 deletions

View file

@ -22,9 +22,8 @@ describe Conversation do
describe '#last_author' do
it 'returns the last author to a conversation' do
time = Time.now
cnv = Conversation.create(@create_hash)
Message.create(:author => @user2.person, :created_at => time + 1.second, :text => "last", :conversation_id => cnv.id)
Message.create(:author => @user2.person, :created_at => Time.now + 100, :text => "last", :conversation_id => cnv.id)
cnv.reload.last_author.id.should == @user2.person.id
end
end

View file

@ -3,6 +3,7 @@
# the COPYRIGHT file.
require 'spec_helper'
require 'lib/pubsubhubbub'
describe Job::PublishToHub do
describe '.perform' do