[rspec-users] has_many_polymorphs is breaking my testing
toastkid.williams at gmail.com
Wed Feb 27 08:14:49 EST 2008
Never mind, i'm an idiot, the problem was that i broke my Property class
with the has_many_polymorphs declaration, so the spec couldn't load it.
On 27/02/2008, Max Williams <toastkid.williams at gmail.com> wrote:
> I have a class Property that was testing fine until i added the following
> to it:
> has_many_polymorphs :labelled,
> :from => [:instructional_objects, :lessons, :courses],
> :through => :labels,
> :dependent => :destroy
> (in other words, 'labels' is a join table through which various objects
> can be labelled with a property)
> Now my spec file crashes, saying that Property isn't defined in
> property.rb: does anyone know what's gone wrong here?
> `load_missing_constant': Expected
> /home/jars/rails/lesson_planner/branches/max/app/models/property.rb to
> define Property (LoadError)
> from ./spec/models/property_spec.rb:3
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users