add the opposite test, fix a typo in my previous test declaration
This commit is contained in:
parent
1343188ccb
commit
5ca5db213f
1 changed files with 6 additions and 1 deletions
|
|
@ -267,10 +267,15 @@ describe Postzord::Dispatcher do
|
|||
Postzord::Dispatcher.object_should_be_processed_as_public?(f).should be_false
|
||||
end
|
||||
|
||||
it 'returns true with a like on a comment on a private post' do
|
||||
it 'returns true with a like on a comment on a public post' do
|
||||
f = Factory(:like, :target => Factory(:comment, :post => Factory(:status_message, :public => true)))
|
||||
Postzord::Dispatcher.object_should_be_processed_as_public?(f).should be_true
|
||||
end
|
||||
|
||||
it 'returns false with a like on a comment on a private post' 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
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue