aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2012-12-11 16:03:09 +1100
committerHenare Degan <henare.degan@gmail.com>2012-12-11 16:05:52 +1100
commit270dd80fe33d5f93ade639365955d6ce239bd8c7 (patch)
tree0072161eafb6849f16a45f2715cd48de65abf109
parent747f20d5978c74258cbf5787d62ca28c0e88e7a4 (diff)
Let's get a simple model working. First of all, this is not a Rails model
-rw-r--r--spec/views/public_body/show.rhtml_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/views/public_body/show.rhtml_spec.rb b/spec/views/public_body/show.rhtml_spec.rb
index b68b3f43b..f59409e98 100644
--- a/spec/views/public_body/show.rhtml_spec.rb
+++ b/spec/views/public_body/show.rhtml_spec.rb
@@ -17,7 +17,7 @@ describe "when viewing a body" do
@pb.stub!(:is_requestable?).and_return(true)
@pb.stub!(:has_notes?).and_return(false)
@pb.stub!(:has_tag?).and_return(false)
- @xap = mock_model(ActsAsXapian::Search, :matches_estimated => 2)
+ @xap = mock(ActsAsXapian::Search, :matches_estimated => 2)
@xap.stub!(:results).and_return([
{ :model => mock_event },
{ :model => mock_event }