search for: labellable_method

Displaying 1 result from an estimated 1 matches for "labellable_method".

Did you mean: labellable_methods
2008 Mar 05
4
has_many_polymorphs is breaking my spec file
...e 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 following code: POLYMORPHIC_TABLENAMES =...