diff options
-rw-r--r-- | spec/views/body/show.rhtml_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/views/body/show.rhtml_spec.rb b/spec/views/body/show.rhtml_spec.rb index 8e531b91e..24f86aafb 100644 --- a/spec/views/body/show.rhtml_spec.rb +++ b/spec/views/body/show.rhtml_spec.rb @@ -14,6 +14,8 @@ describe "when viewing a body" do :info_requests => [1, 2, 3, 4], # out of sync with Xapian :publication_scheme => '', :calculated_home_page => '') + @pb.stub!(:is_requestable?).and_return(true) + @pb.stub!(:has_notes?).and_return(false) @xap = mock_model(ActsAsXapian::Search, :matches_estimated => 2) @xap.stub!(:results).and_return([ { :model => mock_event }, |