On Apr 26, 2011, at 4:02 PM, Rodrigo Rosenfeld Rosas wrote:
> Ok, now I understand what is your issue.
>
class Foo
end
class Bar
def self.my_foo
@my_foo ||= Foo.new
end
def self.perform
my_foo.do_something
end
end
Ok, now I understand what is your issue.
class Fooend
class Bar def self.my_foo @my_foo ||= Foo.new end def self.perform
my_foo.do_something endend
describe Foo do
before(:each) do @stupid_mock = double('wtf') Foo.stub(:new =>
@stupid_mock) endit "passes here" do
@stupi
On Apr 25, 2011, at 11:30 PM, Rodrigo Rosenfeld Rosas wrote:
> Em 25-04-2011 14:58, Matthew Van Horn escreveu:
>>
>>
>> On Apr 25, 2011, at 1:36 PM, Matthew Van Horn wrote:
>>
>>> I've run into some strange behavior in porting my specs from rspec to
>>> rspec2.
>>> I am wondering if I am doin