RailsCasts Pro episodes are now free!

Learn more or hide this

Serhyi Vynohradov's Profile

GitHub User: zoopyserg

Site: http://railsmuffin.com

Comments by Serhyi Vynohradov

Avatar

How do I test this?

I tried:

ruby
# RSpec + Shoulda
it {should have_many(:comments).as(:commentable) }

But it doesn't work.