• Sep
    22
    2010

    Flexmock Error: undefined method `destroyed?’

    Share
    If you are using flexmock for testing your rails code and you are mocking an active record model using flexmock(:model, Model), you may get an error like
    undefined method `destroyed?’
    The problem is that flexmock defines a lot of methods/attributes like id and new_instance? etc but does not define a destroyed? method that rails now expects. [...]

 
Powered by Wordpress and MySQL. Theme by openark.org