[rspec-users] rspec testing inheritance

Justin Ko jko170 at gmail.com
Wed Sep 7 01:39:25 EDT 2011


On Tue, Sep 6, 2011 at 9:40 PM, slavix <mikerin.slava at gmail.com> wrote:

> Hello,
> Is there any way to test model inheritance in spec?
>
> something like..
>  it { ChildModel.should < ParentModel }
>
> thanks.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>

specify { ChildModel.should be < ParentModel }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110906/6e1eca2b/attachment.html>


More information about the rspec-users mailing list