From 91e4c8bccc0c4f3b8021ea8e7d256e50d456386f Mon Sep 17 00:00:00 2001 From: David Chelimsky Date: Thu, 7 May 2009 14:40:00 -0700 Subject: [PATCH] no stubs in spec suite --- spec/stubble_spec.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spec/stubble_spec.rb b/spec/stubble_spec.rb index c65e233..a6c12fe 100644 --- a/spec/stubble_spec.rb +++ b/spec/stubble_spec.rb @@ -54,12 +54,11 @@ class Model it "tears down the stubs" do model = nil stubbing(Model) do |model| - model.stub(:foo).and_return(:bar) - model.foo.should == :bar + model.update_attribute.should be(true) end expect do - model.foo - end.to raise_error(/undefined local variable or method `foo'/) + model.update_attribute + end.to raise_error(/undefined local variable or method `update_attribute'/) end end