This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Cucumber features
Cucumber Features
As your app evolves, you want to know that authentication still works. Clearance’s opinion is that you should test its integration with your app using Cucumber.
In config/environments/test.rb:
config.gem 'webrat', :version => '>= 0.4.5' config.gem 'cucumber', :version => '>= 0.3.11' config.gem 'thoughtbot-factory_girl', :lib => 'factory_girl', :source => "http://gems.github.com", :version => '1.2.1'
Vendor the gems:
rake gems:install RAILS_ENV=test rake gems:unpack RAILS_ENV=test
We don’t vendor nokogiri due to its native extensions, so install it normally on your machine:
sudo gem install nokogiri
Run the Cucumber generator (if you haven’t already) and Clearance’s feature generator:
script/generate cucumber script/generate clearance_features
All of the files generated should be new with the exception of the features/support/paths.rb file. If you have not modified your paths.rb then you will be okay to replace it with this one. If you need to keep your paths.rb file then add these locations in your paths.rb manually:
def path_to(page_name) case page_name ... 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 ... end






