rails testing: fixtures, factories, incantation numbers


i've got an concentration needs definitely bit information (1000s records) suitable testing. wholly proceed i've found decent set testable, essential information subset prolongation db. i've converted yaml fixtures normal `test/fixtures' location.



this works, nonetheless i have garland clearly crisp tests assertions count being sole array annals accommodate condition x...



example



def test_children_association
p = parent.find(1)
assert_equal 18, p.children.count, "parent.children isn't providing right records"
end


this doesn't seem good thought me, nonetheless i'm certain there improved / supposed way exam an concentration needs infinite hierarchy data.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?