-
-
Notifications
You must be signed in to change notification settings - Fork 467
Cucumber features
croaky edited this page Sep 13, 2010
·
7 revisions
Acceptance testing with Cucumber provides nice Outside-In development, starting from the user interface. We recommend running the Cucumber features generator for Clearance for maximum test coverage.
Follow the instructions on the Cucumber wiki. Usually, this entails installing the gems and then running:
ruby script/generate cucumberRun the Cucumber features generator that comes with Clearance:
script/generate clearance_featuresThis will create some step definitions and four features:
- Sign up (includes email confirmation)
- Sign in
- Sign out
- Reset password
You will likely be asked if you want to overwrite the paths.rb file. If you’re on a fresh app and have no paths, overwrite the file. Otherwise, you will need to add these paths:
when /the homepage/i root_path when /the sign up page/i new_user_path when /the sign in page/i new_session_path when /the password reset request page/i new_password_path