Single Table Inheritance with Factory Girl in Rails
问题 I'm making a Rails 4.0.1 app using Capybara and FactoryGirl but I'm having trouble getting my tests to work correctly. I'm using single table inheritance to make a Collection < ActiveRecord::Base and a VideoCollection < Collection model. When using Factory Girl in my tests, the models don't seem to get instantiated as they should. The Details: When I visually inspect a view in my browser that I'm testing, it displays the collection properly. When I run print page.html in the test for the same