hzamani / acts_as_relation

Multi table Inheritance for rails
http://hzamani.github.com/acts_as_relation/
MIT License
180 stars 58 forks source link

Suggested RSpecs... #10

Closed cscairns closed 10 years ago

cscairns commented 12 years ago

For those using the RSpec test suite, would be cool if some custom matchers were available:

  1. should act_as_superclass
  2. should act_as_parent
  3. subclass should destroy when parent destroyed
  4. parent should destroy when child subclass destroyed
hzamani commented 12 years ago

What kind of mathers are 3 and 4?

Jpunt commented 10 years ago

How should we properly test at least the first 2?

hzamani commented 10 years ago

in active_record-acts_as there are acting_as? and actable? to check the first 2