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:

Authors

Clearance was extracted out of Hoptoad. We merged the authentication code from two of thoughtbot’s clients’ Rails apps and have since used it each time we need authentication. The following people have improved the library. Thank you!