Displaying 1 result from an estimated 1 matches for "labellableclassmethod".
Did you mean:
labellableclassmethods
2008 Mar 05
4
has_many_polymorphs is breaking my spec file
Hey folks
I have a bunch of classes that are polymorphs, with has_many_polymorphs
(they are all ''labellable'', which is similar to being ''taggable'' in the
acts_as_taggable scheme). I have a couple of modules,
LabellableInstanceMethods and LabellableClassMethods in a file called
labellable_methods.rb.
The classes all get labelled with ''properties'', and i set out to write the
Property class first, using bdd of course. This all went fine. However,
when i came to start testing that the labelling was working properly, i
added the followin...