Hi,

How can I mock the "go" method of class B so that it returns the
string "fudge" in this situation?

class A
private
  def start
    @b = B.new
  end
end

class B
  def go
    puts "This is fun."
  end
end

Also, is it possible to do the mocha-like any_instance thing with RSpec?

Thank you,
David :)
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to