Non-stub fakes allow any attribute to be set

Issue #13 new
Bradley Ayers
created an issue

I'm trying to test that my fake doesn't have any attributes accessed/set other than what I specify in has_attr. However fudge fakes allow any attribute to be set without an exception being raised, and I don't see any way to get around that via the API. e.g. I want the following to fail {{{ person = fudge.Fake("Person") person.name = "tim" }}}

Comments (0)

  1. Log in to comment