Displaying 1 result from an estimated 1 matches for "_rails_root_".
2006 Feb 15
2
Polymorphic joins work one way, but not the other
...ts(:simple_event_1).task.title
end
All asserts pass except the last one:
ruby test/unit/task_test.rb
Loaded suite test/unit/task_test
Started
E.
Finished in 1.103896 seconds.
1) Error:
test_polymorphics(TaskTest):
NoMethodError: undefined method `task'' for #<Event:0x22258a0>
_RAILS_ROOT_/config/../vendor/rails/activerecord/lib/active_record/base.rb:1565:in
`method_missing''
test/unit/task_test.rb:17:in `test_polymorphics''
2 tests, 7 assertions, 0 failures, 1 errors
(path replaced with RAILS_ROOT since I''m secretive like that)
In other words - I can...