ruby on rails - step definitions in cucumber -


i have rails app has account class has 1 or more users related it; each user has login credential, app check current_account.

i trying write cucumber feature includes classic 'given user logged in...', , in steps_definitions file, need know how express account class before creating user object.

actually, creating user no problem, becomes problem when >> click_button 'login'

so... what's best approach make sure have account (which, way, requires subscription, requires subscription plan , jazz before they're created...


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -