fix up some specs
This commit is contained in:
parent
ddbd5febb3
commit
8a419a84a6
2 changed files with 2 additions and 2 deletions
|
|
@ -22,9 +22,8 @@ describe Conversation do
|
||||||
|
|
||||||
describe '#last_author' do
|
describe '#last_author' do
|
||||||
it 'returns the last author to a conversation' do
|
it 'returns the last author to a conversation' do
|
||||||
time = Time.now
|
|
||||||
cnv = Conversation.create(@create_hash)
|
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
|
cnv.reload.last_author.id.should == @user2.person.id
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
# the COPYRIGHT file.
|
# the COPYRIGHT file.
|
||||||
|
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
require 'lib/pubsubhubbub'
|
||||||
|
|
||||||
describe Job::PublishToHub do
|
describe Job::PublishToHub do
|
||||||
describe '.perform' do
|
describe '.perform' do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue