Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
no stubs in spec suite
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed May 7, 2009
1 parent 4fc9ced commit 91e4c8b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spec/stubble_spec.rb
Expand Up @@ -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

Expand Down

0 comments on commit 91e4c8b

Please sign in to comment.