Something I do often is use stub methods in before blocks and mock
expectations in a specific examples (much like described here:
I was just surprised with an instance of doing this and I thought I’d
with the group to see if I shouldn’t have been.
What should be the expected output of the following – assume it’s the
code in a spec file:
class Foo; def bar; end; end
it “should print something” do
foo = Foo.new
I expected “false / false”. The actual output is “false / true”.