From a0d02b2fcee985e2a509c73f4cceb2777c233a6e Mon Sep 17 00:00:00 2001 From: Mario Visic Date: Sat, 14 Jan 2012 22:06:42 +1030 Subject: [PATCH] Add a failing tests for ContentInstance#set_visibility returning false. --- spec/models/content_instance_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/content_instance_spec.rb b/spec/models/content_instance_spec.rb index 1330f983..f8c4c57b 100644 --- a/spec/models/content_instance_spec.rb +++ b/spec/models/content_instance_spec.rb @@ -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