diff options
author | francis <francis> | 2009-06-12 14:03:59 +0000 |
---|---|---|
committer | francis <francis> | 2009-06-12 14:03:59 +0000 |
commit | 5919ee3698ef3bdd914d57e1e2b13019471108b9 (patch) | |
tree | 30efe8c1ec946ff9a6f76815fbf633f8cfa25aa4 | |
parent | 2200f2d498352ed7ab319c20864a7f3e5106e589 (diff) |
Stub two methods only now called in view.
-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 }, |