search for: target_com

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

Did you mean: target_cur
2008 Aug 26
9
stub_model() and ActiveRecord Associations
...t was quite a simple requirement but something to do with the way ActiveRecord''s associations work is making it quite puzzling. I guess I can sum it up with this failing test: before(:each) do @source_comment = @source.comments.create(:user_id => 1) @target_comment = @target.comments.create(:user_id => 1) end it "should return the same object from create() as from the array" do (@target_comment.equal?(@target.comments[0])).should be_true do_merge end What I actually want to be able to do...