ruby on rails - How can I see the count of fixture entries? -


i have products.yml file 3 entries in means store's front page shows 3 products in turn means test showing products passes because i'm looking 3 products. , good.

what i'm looking ability add more products products.yml without having update assert_select '#main .entry', 3 assert_select '#main .entry', 4. instead i'd try assert_select '#main .entry', products.size haven't been able find anything, anywhere provides way or examples of people doing that.

assert_select '#main .entry', product.count 

Comments

Popular posts from this blog

ios - Change Storyboard View using Seague -

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -