add another dispatcher spec
This commit is contained in:
parent
eeb01f4e74
commit
3d6169395f
1 changed files with 6 additions and 0 deletions
|
|
@ -276,6 +276,12 @@ describe Postzord::Dispatcher do
|
||||||
f = Factory(:like, :target => Factory(:comment, :post => Factory(:status_message, :public => false)))
|
f = Factory(:like, :target => Factory(:comment, :post => Factory(:status_message, :public => false)))
|
||||||
Postzord::Dispatcher.object_should_be_processed_as_public?(f).should be_false
|
Postzord::Dispatcher.object_should_be_processed_as_public?(f).should be_false
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue