Add a failing tests for ContentInstance#set_visibility returning false.

This commit is contained in:
Mario Visic 2012-01-14 22:06:42 +10:30
parent 76b611b848
commit a0d02b2fce

View File

@ -138,13 +138,13 @@ describe ContentInstance do
it 'can be visible even if it is nil' do it 'can be visible even if it is nil' do
@content.visible = nil @content.visible = nil
@content.send(:set_visibility) @content.send(:set_visibility).should be_true
@content.visible?.should be_true @content.visible?.should be_true
end end
it 'can not be visible' do it 'can not be visible' do
@content.visible = false @content.visible = false
@content.send(:set_visibility) @content.send(:set_visibility).should be_true
@content.visible?.should be_false @content.visible?.should be_false
end end