psyho / bogus

Fake library for Ruby
Other
359 stars 14 forks source link

Can't stub to_s on a fake #39

Closed ml closed 10 years ago

ml commented 11 years ago

fake(to_s: "fafarafa").to_s #=> "#<Bogus::RespondsToEverything:0x00000014479e38>" while I'd expect it to be "fafarafa"

It happens regardles it's an anonymous or existing class fake.

wrozka commented 10 years ago

Thank you for the bug report. We'll release a version with the fix soon.