Displaying 1 result from an estimated 1 matches for "facilitiesservices".
Did you mean:
facilities_services
2008 May 28
2
functional testing joins table problem
I have models/controllers
Class Facility
has_many :facilities_services, :dependent => :delete_all
Class Service
has_many :facilities_services, :dependent => :delete_all
Class FacilitiesServices
belongs_to :facility
belongs_to :service
so in my test/functional/facilities_controller_test.rb, I have
post :destroy, :id => 5
which tosses an error...
test_destroy(FacilitiesControllerTest):
NameError: uninitialized constant Facility::FacilitiesService
/usr/lib/ruby/gems/1.8/gems...