Add a failing tests for ContentInstance#set_visibility returning false.
This commit is contained in:
parent
76b611b848
commit
a0d02b2fce
@ -138,13 +138,13 @@ describe ContentInstance do
|
||||
|
||||
it 'can be visible even if it is nil' do
|
||||
@content.visible = nil
|
||||
@content.send(:set_visibility)
|
||||
@content.send(:set_visibility).should be_true
|
||||
@content.visible?.should be_true
|
||||
end
|
||||
|
||||
it 'can not be visible' do
|
||||
@content.visible = false
|
||||
@content.send(:set_visibility)
|
||||
@content.send(:set_visibility).should be_true
|
||||
@content.visible?.should be_false
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user