search for: widgettest

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

2007 Jan 10
3
ActiveRecord Error?
...------------- class Gadget < ActiveRecord::Base has_one :widget end class Widget < ActiveRecord::Base belongs_to :gadget def save gadget.save super end end ------------------------------------------- and the following test.... ------------------------------------------- class WidgetTest < Test::Unit::TestCase fixtures :widgets, :gadgets # Replace this with your real tests. def test_update w = Widget.find(1) assert_equal(w,w.gadget.widget) w.save end end ------------------------------------------- Obviously this is a contrived example (why would anyone every...