search for: with_typ

Displaying 2 results from an estimated 2 matches for "with_typ".

Did you mean: with_type
2006 Mar 08
0
combining STI + polymorphism + rich self HABTM : how to ?
...tiveRecord::Base class Person < Entity class Company < Entity table "relations" ------------------ # of_id :integer(11) = the left party: john, MSFT # of_type :string(20) # with_id :integer(11) = the right party.. # with_type :string(20) # relation_type_id :integer(11) = L.U.T: "works_for", "knows" relationship models ---------------- class Relation < AR::B class RelationType < AR::B What I don''t know: ***************** How to associate all those pieces?...
2007 Dec 06
43
Mocks? Really?
OK, so i''ve played a bit with mocks and mock_models in controller and view tests and i have a question. Is this statement really correct: "We highly recommend that you exploit the mock framework here rather than providing real model objects in order to keep the view specs isolated from changes to your models." (http://rspec.rubyforge.org/documentation/rails/writing/views.html