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
Post a Comment