Re: [Rails] Rspec for polymorphic classes

2014-09-26 Thread Jason Fleetwood-Boldt
I'm not sure why you can't write a normal rspec against these objects--- generally rspec tests the objects themselves and how their public methods are implemented (and, when appropriate, the internals of the object implementation). The decision to make the attachment polymorphic -- which incide

[Rails] Rspec for polymorphic classes

2014-09-25 Thread Jan Yo
Rspec forum has troubles Does anyone have examples for rspec model for a polymorphic class? Since attributes get dynamically created into the db, this is different to test than normal rspec models. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscrib