Displaying 1 result from an estimated 1 matches for "foodouble".
2007 Jul 27
5
File.stub!
...ocks, which in turn is nil.
Can someone explain what I''m doing wrong, as I can''t seem to stub
anything out! Here''s my code:
class Foo
def Foo.open( name, mode )
return name
end
end
describe Something, ''blah blah'' do
class FooDouble #:nodoc:
attr_reader :data
def initialize
@data = []
end
def method_missing( name, *args )
puts "ignoring call to #{name} with args [#{args.each |arg|
arg.inspect}]"
end
def <<(raw_data)
@data.push r...