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

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -