add another dispatcher spec

This commit is contained in:
Maxwell Salzberg 2011-09-16 15:16:41 -07:00
parent eeb01f4e74
commit 3d6169395f

View file

@ -276,6 +276,12 @@ describe Postzord::Dispatcher do
f = Factory(:like, :target => Factory(:comment, :post => Factory(:status_message, :public => false)))
Postzord::Dispatcher.object_should_be_processed_as_public?(f).should be_false
end
it 'returns false for a relayable_retraction' do
f = RelayableRetraction.new
f.target = Factory(:status_message, :public => true)
Postzord::Dispatcher.object_should_be_processed_as_public?(f).should be_false
end
end